@@ -5973,13 +5973,13 @@ true false true false false false true true false false true false true
5973
5973
# NB that `col in (a, b, c)` is simplified to OR if there are <= 3 elements, so we make 4-element haystack lists
5974
5974
5975
5975
query I
5976
- with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
5976
+ with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
5977
5977
select count(*) from test WHERE needle IN ('7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c');
5978
5978
----
5979
5979
1
5980
5980
5981
5981
query TT
5982
- explain with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
5982
+ explain with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
5983
5983
select count(*) from test WHERE needle IN ('7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c');
5984
5984
----
5985
5985
logical_plan
@@ -6002,13 +6002,13 @@ physical_plan
6002
6002
09)----------------LazyMemoryExec: partitions=1, batch_generators=[generate_series: start=1, end=100000, batch_size=8192]
6003
6003
6004
6004
query I
6005
- with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6005
+ with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6006
6006
select count(*) from test WHERE needle = ANY(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c']);
6007
6007
----
6008
6008
1
6009
6009
6010
6010
query TT
6011
- explain with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6011
+ explain with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6012
6012
select count(*) from test WHERE needle = ANY(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c']);
6013
6013
----
6014
6014
logical_plan
@@ -6031,13 +6031,13 @@ physical_plan
6031
6031
09)----------------LazyMemoryExec: partitions=1, batch_generators=[generate_series: start=1, end=100000, batch_size=8192]
6032
6032
6033
6033
query I
6034
- with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6034
+ with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6035
6035
select count(*) from test WHERE array_has(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c'], needle);
6036
6036
----
6037
6037
1
6038
6038
6039
6039
query TT
6040
- explain with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6040
+ explain with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6041
6041
select count(*) from test WHERE array_has(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c'], needle);
6042
6042
----
6043
6043
logical_plan
@@ -6068,7 +6068,7 @@ physical_plan
6068
6068
6069
6069
# FIXME: array_has with large list haystack not currently rewritten to InList
6070
6070
query TT
6071
- explain with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6071
+ explain with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6072
6072
select count(*) from test WHERE array_has(arrow_cast(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c'], 'LargeList(Utf8View)'), needle);
6073
6073
----
6074
6074
logical_plan
@@ -6091,13 +6091,13 @@ physical_plan
6091
6091
09)----------------LazyMemoryExec: partitions=1, batch_generators=[generate_series: start=1, end=100000, batch_size=8192]
6092
6092
6093
6093
query I
6094
- with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6094
+ with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6095
6095
select count(*) from test WHERE array_has(arrow_cast(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c'], 'FixedSizeList(4, Utf8View)'), needle);
6096
6096
----
6097
6097
1
6098
6098
6099
6099
query TT
6100
- explain with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6100
+ explain with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6101
6101
select count(*) from test WHERE array_has(arrow_cast(['7f4b18de3cfeb9b4ac78c381ee2ad278', 'a', 'b', 'c'], 'FixedSizeList(4, Utf8View)'), needle);
6102
6102
----
6103
6103
logical_plan
@@ -6120,14 +6120,14 @@ physical_plan
6120
6120
09)----------------LazyMemoryExec: partitions=1, batch_generators=[generate_series: start=1, end=100000, batch_size=8192]
6121
6121
6122
6122
query I
6123
- with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6123
+ with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6124
6124
select count(*) from test WHERE array_has([needle], needle);
6125
6125
----
6126
6126
100000
6127
6127
6128
6128
# TODO: this should probably be possible to completely remove the filter as always true?
6129
6129
query TT
6130
- explain with test AS (SELECT substr(md5(i)::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6130
+ explain with test AS (SELECT substr(md5(i::text )::text, 1, 32) as needle FROM generate_series(1, 100000) t(i))
6131
6131
select count(*) from test WHERE array_has([needle], needle);
6132
6132
----
6133
6133
logical_plan
0 commit comments