You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can one reproduce the bug?
Steps to reproduce the behavior:
Create table and add data
CREATE TABLE test (
name STRING, age INT, email STRING, street_address STRING
);
INSERT INTO test VALUES
("Alice", 30, "alice@example.com", "123 Main St, Seattle"),
("Bob", 55, "bob@test.org", "456 Elm St, Portland"),
("Charlie", 65, "charlie@domain.net", "789 Pine St, San Francisco"),
("David", 19, "david@anotherdomain.com", "101 Maple St, New York");
Is it even possible to replace a existing column with a new computed column with same name in spark? Not sure about this.
It seems like no, consider using a different name? As a workaround you could consider something like | fields custom_email | rename custom_email as email
What is the bug?
According to https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/parse.rst#example-2-override-an-existing-field, the
parse
command can be used to override an existing field. It doesn't work in spark ppl.How can one reproduce the bug?
Steps to reproduce the behavior:
What is the expected behavior?
Values from the existing email column are overridden by values computed by the parse command.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: