szehon-ho commented on code in PR #60368:
URL: https://github.com/apache/spark/pull/60368#discussion_r4555444728


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TableConstraintResolution.scala:
##########
@@ -114,37 +112,14 @@ private[sql] class TableConstraintResolution(
           // row Spark auto-filled passes it when a later write carries it.
           StoredExpressionText.analyze(
             check(catalystExpr),
-            
check(Option(genExpr.getSql).map(StoredExpressionText.parseWithSessionAnsi)
-              .getOrElse(catalystExpr)),
+            check(GeneratedColumn.toCatalyst(

Review Comment:
   Addressed in 607399ca8e6 with a lazy cached modeled conversion in 
`GeneratedColumn.ExpressionReader`. Conversion, diagnostics, and analysis reuse 
that result; only SQL text may be read again for the session fallback.



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