MaxGekk commented on a change in pull request #26563: [SPARK-29758][SQL][2.4]
Fix truncation of requested string fields in `json_tuple`
URL: https://github.com/apache/spark/pull/26563#discussion_r347226053
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -1576,6 +1576,16 @@ object SQLConf {
"turning the flag on provides a way for these sources to see these
partitionBy columns.")
.booleanConf
.createWithDefault(false)
+
+ val OPTIMIZE_STRING_COPY_IN_JSON_TUPLE =
+ buildConf("spark.sql.optimizeStringCopyInJsonTuple.enabled")
Review comment:
The flag turns on/off an optimization which may produce wrong results for
large fields. For small fields, the optimization can work as tests in
`JsonFunctionsSuite` show. Enabling the optimization is up to users.
How would you name this flag?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]