-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-47307][SQL] Add a config to optionally chunk base64 strings #45408
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
Changes from all commits
15c0094
b2019e9
c2e9605
81621b1
2bd8b89
a36161a
4016eb3
109b514
946af79
0dadce5
55b6bf2
8c30869
ac92c02
3f854f7
ef05b34
5435698
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -458,10 +458,24 @@ Project [ascii(c7#x) AS ascii(c7)#x, ascii(c8#x) AS ascii(c8)#x, ascii(v#x) AS a | |
-- !query | ||
select base64(c7), base64(c8), base64(v), ascii(s) from char_tbl4 | ||
-- !query analysis | ||
Project [base64(cast(c7#x as binary)) AS base64(c7)#x, base64(cast(c8#x as binary)) AS base64(c8)#x, base64(cast(v#x as binary)) AS base64(v)#x, ascii(s#x) AS ascii(s)#x] | ||
+- SubqueryAlias spark_catalog.default.char_tbl4 | ||
+- Project [staticinvoke(class org.apache.spark.sql.catalyst.util.CharVarcharCodegenUtils, StringType, readSidePadding, c7#x, 7, true, false, true) AS c7#x, staticinvoke(class org.apache.spark.sql.catalyst.util.CharVarcharCodegenUtils, StringType, readSidePadding, c8#x, 8, true, false, true) AS c8#x, v#x, s#x] | ||
+- Relation spark_catalog.default.char_tbl4[c7#x,c8#x,v#x,s#x] parquet | ||
org.apache.spark.sql.AnalysisException | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ur, this seems to be a wrong regeneration due to the improper implementation. |
||
{ | ||
"errorClass" : "WRONG_NUM_ARGS.WITHOUT_SUGGESTION", | ||
"sqlState" : "42605", | ||
"messageParameters" : { | ||
"actualNum" : "1", | ||
"docroot" : "https://spark.apache.org/docs/latest", | ||
"expectedNum" : "0", | ||
"functionName" : "`base64`" | ||
}, | ||
"queryContext" : [ { | ||
"objectType" : "", | ||
"objectName" : "", | ||
"startIndex" : 8, | ||
"stopIndex" : 17, | ||
"fragment" : "base64(c7)" | ||
} ] | ||
} | ||
|
||
|
||
-- !query | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -839,17 +839,26 @@ NULL NULL NULL NULL | |
-- !query | ||
select base64(c7), base64(c8), base64(v), ascii(s) from char_tbl4 | ||
-- !query schema | ||
struct<base64(c7):string,base64(c8):string,base64(v):string,ascii(s):int> | ||
struct<> | ||
-- !query output | ||
NULL NULL NULL NULL | ||
NULL NULL Uw== NULL | ||
TiAgICAgIA== TiAgICAgICA= TiA= 78 | ||
TmUgICAgIA== TmUgICAgICA= U3A= 78 | ||
TmV0ICAgIA== TmV0ICAgICA= U3BhICA= 78 | ||
TmV0RSAgIA== TmV0RSAgICA= U3Bhcg== 78 | ||
TmV0RWEgIA== TmV0RWEgICA= U3Bhcmsg 78 | ||
TmV0RWFzIA== TmV0RWFzICA= U3Bhcms= 78 | ||
TmV0RWFzZQ== TmV0RWFzZSA= U3Bhcmst 78 | ||
org.apache.spark.sql.AnalysisException | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto. This seems to be a wrong regeneration due to the improper implementation. |
||
{ | ||
"errorClass" : "WRONG_NUM_ARGS.WITHOUT_SUGGESTION", | ||
"sqlState" : "42605", | ||
"messageParameters" : { | ||
"actualNum" : "1", | ||
"docroot" : "https://spark.apache.org/docs/latest", | ||
"expectedNum" : "0", | ||
"functionName" : "`base64`" | ||
}, | ||
"queryContext" : [ { | ||
"objectType" : "", | ||
"objectName" : "", | ||
"startIndex" : 8, | ||
"stopIndex" : 17, | ||
"fragment" : "base64(c7)" | ||
} ] | ||
} | ||
|
||
|
||
-- !query | ||
|
Uh oh!
There was an error while loading. Please reload this page.