Skip to content

Commit 906c14b

Browse files
committed
[Benchmark] Add date tables in phys-cost-models
Tables for `DATE`, `DATETIME`, and `DECIMAL(10,2)` were added.
1 parent c4c9b37 commit 906c14b

File tree

1 file changed

+21
-0
lines changed
  • benchmark/phys-cost-models

1 file changed

+21
-0
lines changed

benchmark/phys-cost-models/gen.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,27 @@
9898
( 'payload', 'i32', ['NOT NULL'] ),
9999
],
100100

101+
'Selectivity_date': [
102+
( 'id', 'i32', ['NOT NULL'] ),
103+
( 'date', 'date', ['NOT NULL'] ),
104+
( 'date_sorted', 'date', ['NOT NULL'] ),
105+
( 'payload', 'i32', ['NOT NULL'] ),
106+
],
107+
108+
'Selectivity_datetime': [
109+
( 'id', 'i32', ['NOT NULL'] ),
110+
( 'datetime', 'datetime', ['NOT NULL'] ),
111+
( 'datetime_sorted', 'datetime', ['NOT NULL'] ),
112+
( 'payload', 'i32', ['NOT NULL'] ),
113+
],
114+
115+
'Selectivity_decimal': [
116+
( 'id', 'i32', ['NOT NULL'] ),
117+
( 'decimal', 'dec10:2', ['NOT NULL'] ),
118+
( 'decimal_sorted', 'dec10:2', ['NOT NULL'] ),
119+
( 'payload', 'i32', ['NOT NULL'] ),
120+
],
121+
101122
'Distinct_multi_i32': [
102123
( 'id', 'i32', ['NOT NULL'] ),
103124
( 'n10', 'i32', ['NOT NULL'], {'num_distinct_values': 10} ),

0 commit comments

Comments
 (0)