Skip to content

Commit

Permalink
[Benchmark] Add date tables in phys-cost-models
Browse files Browse the repository at this point in the history
Tables for `DATE`, `DATETIME`, and `DECIMAL(10,2)` were added.
  • Loading branch information
marcelmaltry committed Feb 16, 2024
1 parent c4c9b37 commit 906c14b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions benchmark/phys-cost-models/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,27 @@
( 'payload', 'i32', ['NOT NULL'] ),
],

'Selectivity_date': [
( 'id', 'i32', ['NOT NULL'] ),
( 'date', 'date', ['NOT NULL'] ),
( 'date_sorted', 'date', ['NOT NULL'] ),
( 'payload', 'i32', ['NOT NULL'] ),
],

'Selectivity_datetime': [
( 'id', 'i32', ['NOT NULL'] ),
( 'datetime', 'datetime', ['NOT NULL'] ),
( 'datetime_sorted', 'datetime', ['NOT NULL'] ),
( 'payload', 'i32', ['NOT NULL'] ),
],

'Selectivity_decimal': [
( 'id', 'i32', ['NOT NULL'] ),
( 'decimal', 'dec10:2', ['NOT NULL'] ),
( 'decimal_sorted', 'dec10:2', ['NOT NULL'] ),
( 'payload', 'i32', ['NOT NULL'] ),
],

'Distinct_multi_i32': [
( 'id', 'i32', ['NOT NULL'] ),
( 'n10', 'i32', ['NOT NULL'], {'num_distinct_values': 10} ),
Expand Down

0 comments on commit 906c14b

Please sign in to comment.