Changeset: a617eac027af for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/a617eac027af Modified Files: sql/server/sql_atom.c Branch: default Log Message:
Merges Aug2024 diffs (77 lines): diff --git a/sql/server/sql_atom.c b/sql/server/sql_atom.c --- a/sql/server/sql_atom.c +++ b/sql/server/sql_atom.c @@ -99,6 +99,7 @@ atom_int( allocator *sa, sql_subtype *tp int bits = number_bits(val); if (a->tpe.type->eclass == EC_NUM) a->tpe.digits = bits; + a->data.len = 0; return a; } } diff --git a/sql/test/json/Tests/load_twitter_data.timeout b/sql/test/json/Tests/load_twitter_data.timeout new file mode 100644 --- /dev/null +++ b/sql/test/json/Tests/load_twitter_data.timeout @@ -0,0 +1,1 @@ +2 diff --git a/sql/test/miscellaneous/Tests/All b/sql/test/miscellaneous/Tests/All --- a/sql/test/miscellaneous/Tests/All +++ b/sql/test/miscellaneous/Tests/All @@ -31,3 +31,4 @@ anti_join_plan table_alias_on_cte special_character_names group_by_all +decimal-atoms diff --git a/sql/test/miscellaneous/Tests/decimal-atoms.test b/sql/test/miscellaneous/Tests/decimal-atoms.test new file mode 100644 --- /dev/null +++ b/sql/test/miscellaneous/Tests/decimal-atoms.test @@ -0,0 +1,35 @@ +query T nosort +plan select 0.001; +---- +project ( +| [ boolean(1) "true" as "%1"."%1" ] +) [ decimal(4,3) "1" ] + +query T nosort +plan select .001; +---- +project ( +| [ boolean(1) "true" as "%1"."%1" ] +) [ decimal(3,3) "1" ] + +query T nosort +plan select 100.00; +---- +project ( +| [ boolean(1) "true" as "%1"."%1" ] +) [ decimal(5,2) "10000" ] + +query T nosort +plan select 100.0; +---- +project ( +| [ boolean(1) "true" as "%1"."%1" ] +) [ decimal(4,1) "1000" ] + +query T nosort +plan select 100.; +---- +project ( +| [ boolean(1) "true" as "%1"."%1" ] +) [ tinyint(7) "100" ] + diff --git a/testing/sqltest.py b/testing/sqltest.py --- a/testing/sqltest.py +++ b/testing/sqltest.py @@ -110,7 +110,7 @@ def filter_matching_blocks(a: [str] = [] s.set_seqs(a[i].replace('\t', '').replace(' ', ''), b[i].replace('\t', '').replace(' ', '')) # should be high matching ratio - if s.quick_ratio() < ratio: + if s.quick_ratio() < 1.0: red_a.append(a[i]) red_b.append(b[i]) # keep track of last mismatch to add some ctx in between _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org