Skip to content

Commit

Permalink
Updated tests based on recent changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Jul 5, 2023
1 parent 359424d commit 85d3aa9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
36 changes: 18 additions & 18 deletions src/substrait/textplan/converter/data/q6_first_stage.golden.splan
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,40 @@ read relation read {
and(
and(
and(
is_not_null(l_shipdate_new)->bool?,
is_not_null(l_discount)->bool?)->bool?,
is_not_null(l_quantity)->bool?)->bool?,
gte(l_shipdate_new, 8766_fp64)->bool?)->bool?,
lt(l_shipdate_new, 9131_fp64)->bool?)->bool?,
gte(l_discount, 0.05_fp64)->bool?)->bool?,
lte(l_discount, 0.07_fp64)->bool?)->bool?,
lt(l_quantity, 24_fp64)->bool?)->bool?;
is_not_null(schema.l_shipdate_new)->bool?,
is_not_null(schema.l_discount)->bool?)->bool?,
is_not_null(schema.l_quantity)->bool?)->bool?,
gte(schema.l_shipdate_new, 8766_fp64)->bool?)->bool?,
lt(schema.l_shipdate_new, 9131_fp64)->bool?)->bool?,
gte(schema.l_discount, 0.05_fp64)->bool?)->bool?,
lte(schema.l_discount, 0.07_fp64)->bool?)->bool?,
lt(schema.l_quantity, 24_fp64)->bool?)->bool?;
}

filter relation filter {
filter and(
and(
and(
and(
gte(l_shipdate_new, 8766_fp64)->bool?,
lt(l_shipdate_new, 9131_fp64)->bool?)->bool?,
gte(l_discount, 0.05_fp64)->bool?)->bool?,
lte(l_discount, 0.07_fp64)->bool?)->bool?,
lt(l_quantity, 24_fp64)->bool?)->bool?;
gte(schema.l_shipdate_new, 8766_fp64)->bool?,
lt(schema.l_shipdate_new, 9131_fp64)->bool?)->bool?,
gte(schema.l_discount, 0.05_fp64)->bool?)->bool?,
lte(schema.l_discount, 0.07_fp64)->bool?)->bool?,
lt(schema.l_quantity, 24_fp64)->bool?)->bool?;
}

project relation project {
expression l_extendedprice;
expression l_discount;
expression schema.l_extendedprice;
expression schema.l_discount;

emit l_extendedprice;
emit l_discount;
emit schema.l_extendedprice;
emit schema.l_discount;
}

aggregate relation aggregate {
measure {
measure sum(
multiply(l_extendedprice, l_discount)->fp64?)->fp64?@AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE;
multiply(schema.l_extendedprice, schema.l_discount)->fp64?)->fp64?@AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE NAMED measurename;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ std::vector<TestCase> getTestCases() {
"count",
"named",
"#2",
"cost",
"count",
"read",
"root"}),
WhenSerialized(EqSquashingWhitespace(
Expand Down Expand Up @@ -321,8 +323,8 @@ std::vector<TestCase> getTestCases() {
join relation join {
type JOIN_TYPE_UNSPECIFIED;
expression product_id;
post_join count;
expression schema.product_id;
post_join schema.count;
}
read relation read3 {
Expand All @@ -332,7 +334,7 @@ std::vector<TestCase> getTestCases() {
join relation join2 {
type JOIN_TYPE_UNSPECIFIED;
expression order_id;
expression schema3.order_id;
}
schema schema {
Expand Down

0 comments on commit 85d3aa9

Please sign in to comment.