dtenedor commented on code in PR #47428:
URL: https://github.com/apache/spark/pull/47428#discussion_r1688684972
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala:
##########
@@ -385,14 +385,21 @@ class AstBuilder extends DataTypeAstBuilder with
SQLConfHelper with Logging {
val (relationCtx, cols, partition, ifPartitionNotExists, byName)
= visitInsertIntoTable(table)
withIdentClause(relationCtx, ident => {
- InsertIntoStatement(
+ val insertIntoStatement = InsertIntoStatement(
createUnresolvedRelation(relationCtx, ident),
partition,
cols,
query,
overwrite = false,
ifPartitionNotExists,
byName)
+ val optimizeInsertIntoValues = conf.getConf(
Review Comment:
optional: I think you can just inline this `conf.getConf(...)` call into the
single call site below on L398
--
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]