diff --git a/test/parser/spark/syntax.test.ts b/test/parser/spark/syntax.test.ts index a6c1375..d194e59 100644 --- a/test/parser/spark/syntax.test.ts +++ b/test/parser/spark/syntax.test.ts @@ -312,4 +312,13 @@ SELECT * FROM t2;`, ]; validateTest(sqls); }); + + test('Customizing variables with the ${} symbol', () => { + const sqls = [ + `select * from \${tb};`, + `select a as \${b_} from tb_test;`, + 'select a as ${bb} from ${tt}', + ]; + validateTest(sqls); + }); });