Hi I have a dataset in parquet format with pretty big text field.
If I understand correctly these two query should bring same result
SELECT Distinct filed1 FROM table WHERE text like ‘%sometext%’ - 1 row
SELECT Distinct filed1 FROM table WHERE ilike(text, ‘%sometext%’) - 28 rows
More over when I run aggregated query with like in the where clause I can get complitelly wrong result.
Dremio version: 3.3.2-201908142136370993-d60145d
Query:
SELECT COUNT(*) FROM (
SELECT ‘Single line example: some test data here’ TextData
UNION ALL
SELECT ‘multiline example:
some test data here’)
WHERE TextData LIKE ‘%some test data%’
Result: 1
SELECT COUNT(*) FROM (
SELECT ‘Single line example: some test data here’ TextData
UNION ALL
SELECT ‘multiline example:
some test data here’)
WHERE ILIKE(TextData,’%some test data%’)