Skip to content

Commit d45b105

Browse files
committed
add test
1 parent b7b580e commit d45b105

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: packages/kbn-esql-ast/src/__tests__/ast_parser.columns.test.ts

+17
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,23 @@ describe('Column Identifier Expressions', () => {
5555
]);
5656
});
5757

58+
it('can mix quoted and un-quoted identifiers', () => {
59+
const text = 'ROW part1.part2.`part``3️⃣`';
60+
const { ast } = parse(text);
61+
62+
expect(ast).toMatchObject([
63+
{
64+
type: 'command',
65+
args: [
66+
{
67+
type: 'column',
68+
parts: ['part1', 'part2', 'part`3️⃣'],
69+
},
70+
],
71+
},
72+
]);
73+
});
74+
5875
it('in KEEP command', () => {
5976
const text = 'FROM a | KEEP a.b';
6077
const { ast } = parse(text);

0 commit comments

Comments
 (0)