bojana-db commented on code in PR #59097:
URL: https://github.com/apache/spark/pull/59097#discussion_r4297929198


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/PushVariantIntoScan.scala:
##########
@@ -47,23 +47,27 @@ case class VariantMetadata(
     // with the offending value when the paired data field's strict cast raises
     // INVALID_VARIANT_CAST. We pair by NAME (not struct ordinal) because 
later pruning or
     // reordering of struct fields preserves names but may shift positions.
-    castErrorFor: Option[String] = None) {
+    castErrorFor: Option[String] = None,
+    // Path parser mode captured from the originating VariantGet.
+    legacyPathBackslashAsLiteral: Boolean = false) {
   // Produce a metadata contain one key-value pair. The key is the special 
`METADATA_KEY`.
-  // The value contains key-value pairs for `path`, `failOnError`, 
`timeZoneId`, and -- for
-  // companion fields only -- `castErrorFor`.
+  // The value contains key-value pairs for `path`, `failOnError`, 
`timeZoneId`,
+  // `legacyPathBackslashAsLiteral`, and -- for companion fields only -- 
`castErrorFor`.
   def toMetadata: Metadata = {
     val inner = new MetadataBuilder()
       .putString(VariantMetadata.PATH_KEY, path)
       .putBoolean(VariantMetadata.FAIL_ON_ERROR_KEY, failOnError)
       .putString(VariantMetadata.TIME_ZONE_ID_KEY, timeZoneId)
+      .putBoolean(

Review Comment:
   Done.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to