rdblue commented on a change in pull request #2512:
URL: https://github.com/apache/iceberg/pull/2512#discussion_r624788244
##########
File path:
spark3-extensions/src/main/scala/org/apache/spark/sql/catalyst/parser/extensions/IcebergSparkSqlExtensionsParser.scala
##########
@@ -41,7 +43,17 @@ import org.apache.spark.sql.types.StructType
class IcebergSparkSqlExtensionsParser(delegate: ParserInterface) extends
ParserInterface {
- private lazy val substitutor = new VariableSubstitution(SQLConf.get)
+ private lazy val substitutorCtor: DynConstructors.Ctor[VariableSubstitution]
=
Review comment:
Can you move this to a companion object so it doesn't happen for every
instance of the extensions?
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]