Files
doris/regression-test/data/rollup/test_materialized_view.out

53 lines
1.4 KiB
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !sql --
test_materialized_view1 DUP_KEYS record_id INT Yes true \N true
seller_id INT Yes true \N true
store_id INT Yes true \N true
sale_date DATE Yes false \N NONE true
sale_amt BIGINT Yes false \N NONE true
amt_sum AGG_KEYS store_id INT Yes true \N true
sale_amt BIGINT Yes false \N SUM true
-- !sql --
test_materialized_view2 DUP_KEYS record_id INT Yes true \N true
seller_id INT Yes true \N true
store_id INT Yes true \N true
sale_date DATE Yes false \N NONE true
sale_amt BIGINT Yes false \N NONE true
seller_id_order DUP_KEYS store_id INT Yes true \N true
seller_id INT Yes true \N true
sale_amt BIGINT Yes false \N NONE true
-- !sql --
1 1 1 2020-05-30 100
2 1 1 2020-05-30 100
-- !sql --
1 200
-- !sql --
1 1 1 2020-05-30 100
2 1 1 2020-05-30 100
-- !sql --
1 200
-- !sql --
test_materialized_view1 DUP_KEYS record_id INT Yes true \N true
seller_id INT Yes true \N true
store_id INT Yes true \N true
sale_date DATE Yes false \N NONE true
sale_amt BIGINT Yes false \N NONE true
amt_sum AGG_KEYS store_id INT Yes true \N true
sale_amt BIGINT Yes false \N SUM true
amt_count AGG_KEYS store_id INT Yes true \N true
CASE WHEN `sale_amt` IS NULL THEN 0 ELSE 1 END BIGINT No false SUM true
-- !sql --
1 2