Skip to content

Commit

Permalink
test with a double alias added
Browse files Browse the repository at this point in the history
  • Loading branch information
jerrinot committed Jul 22, 2022
1 parent e59747b commit 8262602
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions core/src/test/java/io/questdb/griffin/OrderByAdviceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -1293,4 +1293,27 @@ public void testOrderByPriority_columnLiteralsMixedWithPositions() throws Except
null,
true, true, true);
}

@Test
public void testOrderByPriority_columnDoubleAliased() throws Exception {
assertQuery("a1\ta2\n" +
"1\t1\n" +
"2\t2\n" +
"3\t3\n" +
"4\t4\n" +
"5\t5\n" +
"6\t6\n" +
"7\t7\n" +
"8\t8\n" +
"9\t9",
"select a as a1, a as a2 from x order by a1 asc, a2 desc;",
"create table x as (" +
"select" +
" x a," +
" x % 3 b" +
" from long_sequence(9)" +
")",
null,
true, true, true);
}
}

0 comments on commit 8262602

Please sign in to comment.