Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
allwefantasy authored Jun 8, 2022
1 parent fa41dee commit 69b6f09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ trait SQLAlg extends Serializable {
def skipOriginalDFName: Boolean = true
def skipResultDFName: Boolean = true

def skipDynamicEvaluation: Boolean = false
def skipDynamicEvaluation: Boolean = true

def modelType: ModelType = UndefinedType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class LoadProcessing(scriptSQLExecListener: ScriptSQLExecListener,
if (tempDS.isDefined ) {
// DataSource who is not MLSQLSourceConfig or if it's MLSQLSourceConfig then skipDynamicEvaluation is false
// should evaluate the v with dynamic expression
if (!tempDS.isInstanceOf[MLSQLSourceConfig] || !tempDS.asInstanceOf[MLSQLSourceConfig].skipDynamicEvaluation) {
if (tempDS.isInstanceOf[MLSQLSourceConfig] && !tempDS.asInstanceOf[MLSQLSourceConfig].skipDynamicEvaluation) {
option = _option.map { case (k, v) =>
val newV = Templates2.dynamicEvaluateExpression(v, ScriptSQLExec.context().execListener.env().toMap)
(k, newV)
Expand Down

0 comments on commit 69b6f09

Please sign in to comment.