Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
Add a test with an alias to a projected tuple
Browse files Browse the repository at this point in the history
Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
  • Loading branch information
Juanjo Alvarez committed Apr 22, 2019
1 parent 56556f1 commit b9b4912
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sql/analyzer/validation_rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,22 @@ func TestValidateProjectTuples(t *testing.T) {
}, nil)),
false,
},
{
"alias with a tuple",
plan.NewProject(
[]sql.Expression{
expression.NewAlias(
expression.NewTuple(
expression.NewLiteral(1, sql.Int64),
expression.NewLiteral(2, sql.Int64),
),
"foo",
),
},
plan.NewUnresolvedTable("dual", ""),
),
false,
},
{
"groupby with no tuple",
plan.NewGroupBy([]sql.Expression{
Expand Down

0 comments on commit b9b4912

Please sign in to comment.