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 2024/12/23 04:10:35 UTC

[I] [CH] Optimize get_json_object nested function calls [incubator-gluten]

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

   ### Description
   
   In our online sqls, have some nested `get_json_object` function calls, like `get_json_object(get_json_object(d, '$.a'), '$.b')`, and some of them can be optimized to `get_json_object(d, '$.a.b')`, which can improve the performance
   
   ![image](https://github.com/user-attachments/assets/bfdb5aa9-044b-48c8-a78c-b8d41bf13e5d)
   
   ![image](https://github.com/user-attachments/assets/dfc0e3f4-7dde-4feb-9447-8b45181a66bd)
   


-- 
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


Re: [I] [CH] Optimize get_json_object nested function calls [incubator-gluten]

Posted by "KevinyhZou (via GitHub)" <gi...@apache.org>.
KevinyhZou commented on issue #8304:
URL: https://github.com/apache/incubator-gluten/issues/8304#issuecomment-2565195269

   Yes, it is a corner case. In most cases, it can be converted. @PHILO-HE  


-- 
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

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


Re: [I] [CH] Optimize get_json_object nested function calls [incubator-gluten]

Posted by "KevinyhZou (via GitHub)" <gi...@apache.org>.
KevinyhZou commented on issue #8304:
URL: https://github.com/apache/incubator-gluten/issues/8304#issuecomment-2561656921

   some nested get_json_object call case can not optimized:  `select get_json_object(get_json_object('{"a":"{\\\"x\\\":5}"}', '$.a'), '$.x')` can not be converted to `select get_json_object('{"a":"{\\\"x\\\":5}"}', '$.a.x');`


-- 
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

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


Re: [I] [CH] Optimize get_json_object nested function calls [incubator-gluten]

Posted by "KevinyhZou (via GitHub)" <gi...@apache.org>.
KevinyhZou commented on issue #8304:
URL: https://github.com/apache/incubator-gluten/issues/8304#issuecomment-2565210358

   OK


-- 
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

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


Re: [I] [CH] Optimize get_json_object nested function calls [incubator-gluten]

Posted by "PHILO-HE (via GitHub)" <gi...@apache.org>.
PHILO-HE commented on issue #8304:
URL: https://github.com/apache/incubator-gluten/issues/8304#issuecomment-2565207829

   @KevinyhZou, I feel we can merge the patch for both CH backend and velox backend if it's in good shape. If you are afraid of any similar issue, it's ok to keep a config for users to control the use of this optimization. Thanks!


-- 
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

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


Re: [I] [CH] Optimize get_json_object nested function calls [incubator-gluten]

Posted by "PHILO-HE (via GitHub)" <gi...@apache.org>.
PHILO-HE commented on issue #8304:
URL: https://github.com/apache/incubator-gluten/issues/8304#issuecomment-2565190613

   @KevinyhZou, do you mean their results are different? Seems this is a corner case.


-- 
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

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


Re: [I] [CH] Optimize get_json_object nested function calls [incubator-gluten]

Posted by "PHILO-HE (via GitHub)" <gi...@apache.org>.
PHILO-HE closed issue #8304: [CH] Optimize get_json_object nested function calls
URL: https://github.com/apache/incubator-gluten/issues/8304


-- 
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

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