Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
59598: parser: lowercase timespans in extract r=jordanlewis a=jordanlewis Touches #19965. Confirmed that this (relatively silly) PR gets rid of the allocations in the experiment listed in #19965 (comment) The `extract` builtin is kind of weird - it is actually supported by the parser and not an ordinary builtin function that people can call without parser support. As such, we can normalize its inputs right in the parser. The benefit of this is that, later, we are going to unconditionally ToLower() the string arguments to extract - which costs an allocation. So we can do this normalization up front to save a bunch of allocations in queries that run `extract` over a lot of data rows. Release note (performance improvement): improve the allocation performance of workloads that use the `EXTRACT` builtin. Co-authored-by: Jordan Lewis <[email protected]>
- Loading branch information