Skip to content

Commit 569904d

Browse files
committed
enable compare between
1 parent 9962dd2 commit 569904d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/to_substrait.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,9 @@ void DuckDBToSubstrait::TransformExpr(Expression &dexpr, substrait::Expression &
561561
case ExpressionType::COMPARE_NOT_DISTINCT_FROM:
562562
TransformComparisonExpression(dexpr, sexpr);
563563
break;
564-
// case ExpressionType::COMPARE_BETWEEN:
565-
// TransformBetweenExpression(dexpr, sexpr);
566-
// break;
564+
case ExpressionType::COMPARE_BETWEEN:
565+
TransformBetweenExpression(dexpr, sexpr);
566+
break;
567567
case ExpressionType::CONJUNCTION_AND:
568568
case ExpressionType::CONJUNCTION_OR:
569569
TransformConjunctionExpression(dexpr, sexpr, col_offset);

test/sql/test_substrait_tpcds.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ CALL get_substrait('WITH wscs AS (SELECT sold_date_sk, sales_price FROM (SELECT
2222

2323
#Q 3
2424
statement ok
25-
CALL get_substrait('SELECT dt.d_year, item.i_brand_id brand_id, item.i_brand brand, Sum(ss_ext_discount_amt) sum_agg FROM date_dim dt, store_sales, item WHERE dt.d_date_sk = store_sales.ss_sold_date_sk AND store_sales.ss_item_sk = item.i_item_sk AND item.i_manufact_id = 427 AND dt.d_moy = 11 GROUP BY dt.d_year, item.i_brand, item.i_brand_id ORDER BY dt.d_year, sum_agg DESC, brand_id LIMIT 100; ')
25+
CALL get_substrait('SELECT dt.d_year, item.i_brand_id brand_id, item.i_brand brand, Sum(ss_ext_discount_amt) sum_agg FROM date_dim dt, store_sales, item WHERE store_sales.ss_item_sk = item.i_item_sk AND item.i_manufact_id = 427 AND dt.d_moy = 11 GROUP BY dt.d_year, item.i_brand, item.i_brand_id ORDER BY dt.d_year, sum_agg DESC, brand_id LIMIT 100; ')
2626

2727
#Q 4
2828
#statement ok

0 commit comments

Comments
 (0)