You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{input: "select $__column from $__table", output: "select my_col from my_table", name: "table and column macros"},
72
79
{input: "select * from table where ( datetime >= $__foo() ) AND ( datetime <= $__foo() ) limit 100", output: "select * from table where ( datetime >= bar ) AND ( datetime <= bar ) limit 100", name: "macro functions inside more complex clauses"},
73
80
{input: "select * from table where ( datetime >= $__foo ) AND ( datetime <= $__foo ) limit 100", output: "select * from table where ( datetime >= bar ) AND ( datetime <= bar ) limit 100", name: "macros inside more complex clauses"},
81
+
{input: "select * from foo where $__multiParams(foo, bar)", output: "select * from foo where bar_foo_bar", name: "macro with multiple parameters"},
82
+
{input: "select * from foo where $__params(FUNC(foo, bar))", output: "select * from foo where bar_FUNC(foo, bar)", name: "function in macro with multiple parameters"},
0 commit comments