Skip to content

Conversation

stefankandic
Copy link
Contributor

What changes were proposed in this pull request?

After removing session-level collation (#49772) we can also revert the PR that changed the behavior of from_json and from_xml expressions to use json and not sql type representation under the hood (#48750).

Why are the changes needed?

Now that we don't have correctness problems with session level collation, using sql instead of json will lead to smaller and more efficient type representation.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing unit tests.

Was this patch authored or co-authored using generative AI tooling?

No.

@stefankandic
Copy link
Contributor Author

@MaxGekk can you take a look?

@MaxGekk
Copy link
Member

MaxGekk commented Mar 11, 2025

+1, LGTM. Merging to master/4.0.
Thank you, @stefankandic.

@MaxGekk MaxGekk closed this in 0094f44 Mar 11, 2025
MaxGekk pushed a commit that referenced this pull request Mar 11, 2025
… in the given schema"

### What changes were proposed in this pull request?
After removing session-level collation (#49772) we can also revert the PR that changed the behavior of `from_json` and `from_xml` expressions to use json and not sql type representation under the hood (#48750).

### Why are the changes needed?
Now that we don't have correctness problems with session level collation, using `sql` instead of `json` will lead to smaller and more efficient type representation.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing unit tests.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes #50234 from stefankandic/revertFromJsonChange.

Authored-by: Stefan Kandic <stefan.kandic@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
(cherry picked from commit 0094f44)
Signed-off-by: Max Gekk <max.gekk@gmail.com>
anoopj pushed a commit to anoopj/spark that referenced this pull request Mar 15, 2025
… in the given schema"

### What changes were proposed in this pull request?
After removing session-level collation (apache#49772) we can also revert the PR that changed the behavior of `from_json` and `from_xml` expressions to use json and not sql type representation under the hood (apache#48750).

### Why are the changes needed?
Now that we don't have correctness problems with session level collation, using `sql` instead of `json` will lead to smaller and more efficient type representation.

### Does this PR introduce _any_ user-facing change?
No.

### How was this patch tested?
Existing unit tests.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#50234 from stefankandic/revertFromJsonChange.

Authored-by: Stefan Kandic <stefan.kandic@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants