JayjeetAtGithub opened a new issue, #7343:
URL: https://github.com/apache/arrow-datafusion/issues/7343

   ### Describe the bug
   
   ### Describe the bug
   
   On running the 4 queries below on the Clickbench multi file dataset, 
   
   ```
   SELECT "SearchPhrase", MIN("URL"), COUNT(*) AS c FROM hits WHERE "URL" LIKE 
'%google%' AND "SearchPhrase" <> '' GROUP BY "SearchPhrase" ORDER BY c DESC 
LIMIT 10;
   DataFusion CLI v29.0.0
   
   SELECT "SearchPhrase", MIN("URL"), MIN("Title"), COUNT(*) AS c, 
COUNT(DISTINCT "UserID") FROM hits WHERE "Title" LIKE '%Google%' AND "URL" NOT 
LIKE '%.google.%' AND "SearchPhrase" <> '' GROUP BY "SearchPhrase" ORDER BY c 
DESC LIMIT 10;
   
   SELECT * FROM hits WHERE "URL" LIKE '%google%' ORDER BY 
to_timestamp_seconds("EventTime") LIMIT 10;
   
   SELECT "SearchPhrase" FROM hits WHERE "SearchPhrase" <> '' ORDER BY 
to_timestamp_seconds("EventTime") LIMIT 10;
   ```
   
   we get this error,
   
   ```bash
   type_coercion caused by Error during planning: There isn't a common type to 
coerce Binary and Utf8 in LIKE expression
   ```
   
   ### To Reproduce
   
   Download the data using,
   
   ```bash
    ./benchmarks/bench.sh data clickbench_partitioned
   ```
   
   A `hits_multi` directory with the parquet files will be created.
   
   Execute the above queries,
   
   ```bash
   datafusion-cli -c "CREATE EXTERNAL TABLE hits STORED AS PARQUET LOCATION 
'hits_multi';" "{query}"
   ```
   
   ### Expected behavior
   
   The queries should run successfully without erroring.
   
   ### Additional context
   
   _No response_
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to