cloud-fan commented on code in PR #57585:
URL: https://github.com/apache/spark/pull/57585#discussion_r3819899362
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/RelationResolution.scala:
##########
@@ -291,7 +291,9 @@ class RelationResolution(
case mc: RelationCatalog
if finalTimeTravelSpec.isEmpty && writePrivileges == null
=>
try {
- Some(mc.loadRelation(ident))
+ val stateOptions =
+ CatalogV2Util.extractTableStateOptions(mc, finalOptions)
Review Comment:
**Non-blocking:**
Please reuse this projected map for the subsequent shared-cache lookup. That
path currently calls `CatalogV2Util.lookupCachedRelation`, which projects the
same option map again, so each uncached relation resolution normalizes the key
set and materializes the projection twice.
--
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]