Commit Graph

9 Commits

Author SHA1 Message Date
Raúl Marín
de855ca917 Reduce header dependencies 2024-03-19 17:04:29 +01:00
Raúl Marín
5c68f9cabd Maintain function alias in RewriteSumFunctionWithSumAndCountVisitor 2024-02-06 19:09:28 +01:00
Jiebin Sun
e9662d4d62 polish the code and adjust some code style 2024-01-20 01:43:06 +08:00
Jiebin Sun
206e1c87e0 revise the comments 2024-01-18 19:07:02 +08:00
Jiebin Sun
784cab638a rename some function_name and add more tests 2024-01-17 22:10:08 +08:00
Jiebin Sun
dfc8e79511 Add the Analyzer implementation for the RewriteSumFunctionWithSumAndCount
Signed-off-by: Jiebin Sun <jiebin.sun@intel.com>
2024-01-08 23:58:13 +08:00
Jiebin Sun
b6b0711238 fix a bug if first_literal and second_column
add more alias testings
2024-01-03 17:53:59 +08:00
Jiebin Sun
d43448e747 Avoid the literal type from nullable
Signed-off-by: Jiebin Sun <jiebin.sun@intel.com>
2023-12-23 02:05:31 +08:00
Jiebin Sun
b3f3a0c75c Rewrite the AST of sum(column + literal) function
Rewrite the following AST of `sum(column + literal)`
sum(column + literal)  ->  sum(column) + literal * count(column)
sum(literal + column)  ->  sum(column) + literal * count(column)

Test the patch on 2 x 80 vCPUs system, Q29 of ClickBench has got a huge
11.5x performance improvement.

Signed-off-by: Jiebin Sun <jiebin.sun@intel.com>
2023-12-15 01:28:47 +08:00