Skip to content

Commit

Permalink
Determine default value for sql parameter editor (#7604)
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkp96 authored Mar 3, 2025
1 parent c598588 commit c67b0d3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import pl.touk.nussknacker.engine.api.definition.{
DualParameterEditor,
FixedValuesParameterEditor,
SpelTemplateParameterEditor,
SqlParameterEditor,
TabularTypedDataEditor
}
import pl.touk.nussknacker.engine.graph.expression.{Expression, TabularTypedData}
Expand All @@ -22,7 +23,7 @@ protected object EditorPossibleValuesBasedDefaultValueDeterminer extends Paramet
Some(Expression.spel(firstValue.expression))
case TabularTypedDataEditor =>
Some(Expression.tabularDataDefinition(TabularTypedData.empty.stringify))
case SpelTemplateParameterEditor =>
case SpelTemplateParameterEditor | SqlParameterEditor =>
Some(Expression.spelTemplate(""))
case DictParameterEditor(_) => Some(Expression(Language.DictKeyWithLabel, ""))
case _ => None
Expand Down

0 comments on commit c67b0d3

Please sign in to comment.