prestodb / presto

The official home of the Presto distributed SQL query engine for big data
http://prestodb.io
Apache License 2.0
15.97k stars 5.35k forks source link

[native] Add session properties for expression evaluation optimizations #23620

Closed bikramSingh91 closed 2 weeks ago

bikramSingh91 commented 3 weeks ago

This change adds session properties that are eventually translate to velox query configs to toggle optimization in expression evaluation. These are debug only configs and should not be used in production. The configs added are: native_debug_disable_expression_with_peeling, native_debug_disable_common_sub_expressions, native_debug_disable_expression_with_memoization, native_debug_disable_expression_with_lazy_inputs.

Test Plan: Updated and added unit tests

bikramSingh91 commented 3 weeks ago

This change relies on velox submodule to be updated to include (https://github.com/facebookincubator/velox/pull/10902), I will send out a separate PR for updating the module.

bikramSingh91 commented 3 weeks ago

Depends on #23621