Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ gen

.java-version
.worktrees
http-client.env.json
http-client.env.json
/doctest/sql-cli/
.factorypath
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public UnresolvedExpression visitWcFieldExpression(WcFieldExpressionContext ctx)
@Override
public UnresolvedExpression visitSortField(SortFieldContext ctx) {
return new Field(
qualifiedName(ctx.sortFieldExpression().fieldExpression().getText()),
visit(ctx.sortFieldExpression().fieldExpression().qualifiedName()),
ArgumentFactory.getArgumentList(ctx)
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,15 @@ public void testSortFieldWithMinusKeyword() {
));
}

@Test
public void testSortFieldWithBackticks() {
assertEqual("source=t | sort `f`",
sort(
relation("t"),
field("f", defaultSortFieldArgs())
));
}

@Test
public void testSortFieldWithAutoKeyword() {
assertEqual("source=t | sort auto(f)",
Expand Down