Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Post-aggregation] Support type conversion for all scalar functions #5849

Merged
merged 1 commit into from
Aug 13, 2020

Conversation

Jackie-Jiang
Copy link
Contributor

Description

Support type conversion for all scalar functions.
Parameter classes supported for type conversion using PinotDataType:

  • int/Integer
  • long/Long
  • float/Float
  • double/Double
  • String
  • byte[]

Also handle function name with underscore in FunctionRegistry.

Support type conversion for all features using the scalar function:

  • Compile time function in CalciteSqlParser
  • Record transform/filter during ingestion in InbuiltFunctionEvaluator
  • Transform during query execution in ScalarTransformFunctionWrapper

Add PostAggregationFunction to handle post-aggregation calculation using the scalar function.
Add ArithmeticFunctions for all the arithmetic scalar functions:

  • plus
  • minus
  • times
  • divide
  • mod
  • min
  • max
  • abs
  • ceil
  • floor
  • exp
  • ln
  • sqrt

@Jackie-Jiang Jackie-Jiang merged commit 2cfaed3 into apache:master Aug 13, 2020
@Jackie-Jiang Jackie-Jiang deleted the post_aggregation_3 branch August 13, 2020 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants