You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gluten.apache.org by "KevinyhZou (via GitHub)" <gi...@apache.org> on 2025/01/13 08:51:32 UTC

[I] Optimize and filter conditions by move equals ahead [incubator-gluten]

KevinyhZou opened a new issue, #8516:
URL: https://github.com/apache/incubator-gluten/issues/8516

   ### Description
   
   when do query contains multiple `and` conditions in where , just like `select count(1) from test_tbl where cast(b as string) != '' and a = 1`, we can simply move the equals conditions ahead to improve the performance, the sql can be executed as `select count(1) from test_tbl where a = 1 and cast(b as string) != ''`, below it is the comparsion of the two sql
   
   ![image](https://github.com/user-attachments/assets/bf89fb64-75ab-4a3b-8ee9-992ba82b5361)
   
   ![image](https://github.com/user-attachments/assets/1012b915-f53b-4d34-9462-0269be09cee4)
   
   


-- 
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: commits-unsubscribe@gluten.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@gluten.apache.org
For additional commands, e-mail: commits-help@gluten.apache.org