rdblue commented on a change in pull request #2512:
URL: https://github.com/apache/iceberg/pull/2512#discussion_r624787512
##########
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]
=
+ DynConstructors.builder()
+ .impl(classOf[VariableSubstitution])
+ .impl(classOf[VariableSubstitution], classOf[SQLConf])
+ .build()
+ private lazy val substitutor =
Review comment:
The constructor should automatically drop extra arguments, so you should
only need `substitutorCtor.newInstance(SQLConf.get)`
--
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]