-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce enable_expression_evaluation_cache query config (#6898)
Summary: Pull Request resolved: #6898 Some Velox optimizations cache vectors for possible reuse later to reduce runtime overhead. Expression evaluator also has a code path evalWithMemo that caches the base vector of dictionary input to avoid unnecessary computation later. These caches are cleared when Tasks are destroyed. An internal streaming use case, however, observed large memory usage by these caches when the streaming pipeline takes large nested-complex-typed input vectors, has a large number of operators, and runs for very long time without Task destruction. This diff introduces an enable_expression_evaluation_cache query config. When this flag is set to false, optimizations including VectorPool, DecodedVector pool, SelectivityVector pool, and Expr::evalWithMemo are disabled. Reviewed By: xiaoxmeng, bikramSingh91 Differential Revision: D49922027 fbshipit-source-id: dce4bf6f1a896c7b05a504dd60ce9c2480759434
- Loading branch information
1 parent
f558c2e
commit 36f9621
Showing
10 changed files
with
265 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.