Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-49013] Change key in collationsMap for Map and Array types in scala #47497

Closed
wants to merge 1 commit into from

Conversation

stefankandic
Copy link
Contributor

What changes were proposed in this pull request?

When deserializing map/array that is not part of the struct field, the key in collation map should just be {"element": collation} instead of {".element": collation}.

Why are the changes needed?

To be consistent with the behavior on the pyspark side (#46737).

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit tests.

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

No.

@github-actions github-actions bot added the SQL label Jul 26, 2024
@stefankandic
Copy link
Contributor Author

@HyukjinKwon Please take a look if you can as you have the context from the same pyspark change.

@HyukjinKwon
Copy link
Member

Merged to master.

ilicmarkodb pushed a commit to ilicmarkodb/spark that referenced this pull request Jul 29, 2024
…scala

### What changes were proposed in this pull request?

When deserializing map/array that is not part of the struct field, the key in collation map should just be `{"element": collation}` instead of `{".element": collation}`.

### Why are the changes needed?

To be consistent with the behavior on the pyspark side (apache#46737).

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

No.

### How was this patch tested?

Unit tests.

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

No.

Closes apache#47497 from stefankandic/complexTypeDeSer.

Authored-by: Stefan Kandic <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
fusheng-rd pushed a commit to fusheng-rd/spark that referenced this pull request Aug 6, 2024
…scala

### What changes were proposed in this pull request?

When deserializing map/array that is not part of the struct field, the key in collation map should just be `{"element": collation}` instead of `{".element": collation}`.

### Why are the changes needed?

To be consistent with the behavior on the pyspark side (apache#46737).

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

No.

### How was this patch tested?

Unit tests.

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

No.

Closes apache#47497 from stefankandic/complexTypeDeSer.

Authored-by: Stefan Kandic <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Oct 4, 2024
…scala

### What changes were proposed in this pull request?

When deserializing map/array that is not part of the struct field, the key in collation map should just be `{"element": collation}` instead of `{".element": collation}`.

### Why are the changes needed?

To be consistent with the behavior on the pyspark side (apache#46737).

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

No.

### How was this patch tested?

Unit tests.

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

No.

Closes apache#47497 from stefankandic/complexTypeDeSer.

Authored-by: Stefan Kandic <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants