aleksandar-trajkovic-db commented on code in PR #59671:
URL: https://github.com/apache/spark/pull/59671#discussion_r4415551673


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/jdbc/JDBCTableCatalog.scala:
##########
@@ -151,11 +153,28 @@ class JDBCTableCatalog extends TableCatalog
     }
   }
 
+  // The per-read value decides the resolved schema, so it must reach 
loadTable.
+  override def tableStateOptionKeys(): util.Set[String] =

Review Comment:
   Yes, as far as I know catalog options work without this. But I don't see why 
we wouldn't propagate per-query options as well. If we didn't, we would have 
silently ignored per-query options on the v2 path and would propagate them well 
on the v1 path. Just to point out this tableStateOptions is a very new addition 
to Spark, hence why other options don't use it, but I think they should hence 
forward and why they should use it for this jdbc option. 



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