-
Notifications
You must be signed in to change notification settings - Fork 28.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-49755][CONNECT] Remove special casing for avro functions in Co…
…nnect ### What changes were proposed in this pull request? apply the built-in registered functions ### Why are the changes needed? code simplification ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? updated tests ### Was this patch authored or co-authored using generative AI tooling? no Closes #48209 from zhengruifeng/connect_avro. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: yangjie01 <[email protected]>
- Loading branch information
1 parent
e1637e3
commit fec1562
Showing
7 changed files
with
9 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...nect/common/src/test/resources/query-tests/explain-results/from_avro_with_options.explain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Project [from_avro(bytes#0, {"type": "int", "name": "id"}, (mode,FAILFAST), (compression,zstandard)) AS from_avro(bytes)#0] | ||
Project [from_avro(bytes#0, {"type": "int", "name": "id"}, (mode,FAILFAST), (compression,zstandard)) AS from_avro(bytes, {"type": "int", "name": "id"}, map(mode, FAILFAST, compression, zstandard))#0] | ||
+- LocalRelation <empty>, [id#0L, bytes#0] |
2 changes: 1 addition & 1 deletion
2
...t/common/src/test/resources/query-tests/explain-results/from_avro_without_options.explain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Project [from_avro(bytes#0, {"type": "string", "name": "name"}) AS from_avro(bytes)#0] | ||
Project [from_avro(bytes#0, {"type": "string", "name": "name"}) AS from_avro(bytes, {"type": "string", "name": "name"}, NULL)#0] | ||
+- LocalRelation <empty>, [id#0L, bytes#0] |
2 changes: 1 addition & 1 deletion
2
...connect/common/src/test/resources/query-tests/explain-results/to_avro_with_schema.explain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Project [to_avro(a#0, Some({"type": "int", "name": "id"})) AS to_avro(a)#0] | ||
Project [to_avro(a#0, Some({"type": "int", "name": "id"})) AS to_avro(a, {"type": "int", "name": "id"})#0] | ||
+- LocalRelation <empty>, [id#0L, a#0, b#0] |
2 changes: 1 addition & 1 deletion
2
...nect/common/src/test/resources/query-tests/explain-results/to_avro_without_schema.explain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Project [to_avro(id#0L, None) AS to_avro(id)#0] | ||
Project [to_avro(id#0L, None) AS to_avro(id, NULL)#0] | ||
+- LocalRelation <empty>, [id#0L, a#0, b#0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters