[
https://issues.apache.org/jira/browse/CALCITE-5833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rong Rong updated CALCITE-5833:
-------------------------------
Description:
I wasn't sure if this is the right way to support the feature please share your
feedback:
h2. goal
to support configuring aggregate function based on literal input fields, such as
{code:sql}
SELECT
histogram(valCol1, 16), -- 16 bit precision of the final results
histogram(valCol2, 8) -- 8 bit precision of the final results
FROM tbl
{code}
h2. approach
I was trying to register a ReturnType inference by opBinding the 2nd literal
argument and create an explicit type based on the literal value. but it tells
me {{AggCallBinding}} doesn't implement {{getOpreandLiteralValue}} method, is
it possible to do so?
was:
I wasn't sure if this is the right way to support the feature please share your
feedback:
h2. goal
to support configuring aggregate function based on literal input fields, such as
{code:sql}
SELECT
histogram(valCol1, 16), -- 16 bit precision of the final results
histogram(valCol2, 8) -- 8 bit precision of the final results
FROM tbl
{code}
h2. approach
I was trying to register a ReturnType inference by opBinding the 2nd literal
argument and create an explicit type based on the literal value. but it tells
me `AggCallBinding` doesn't implement `getOpreandLiteralValue` method, is it
possible to do so?
> Support `getOperandLiteralValue` in `Aggregate.AggCallBinding`
> --------------------------------------------------------------
>
> Key: CALCITE-5833
> URL: https://issues.apache.org/jira/browse/CALCITE-5833
> Project: Calcite
> Issue Type: New Feature
> Reporter: Rong Rong
> Priority: Major
>
> I wasn't sure if this is the right way to support the feature please share
> your feedback:
> h2. goal
> to support configuring aggregate function based on literal input fields, such
> as
> {code:sql}
> SELECT
> histogram(valCol1, 16), -- 16 bit precision of the final results
> histogram(valCol2, 8) -- 8 bit precision of the final results
> FROM tbl
> {code}
> h2. approach
> I was trying to register a ReturnType inference by opBinding the 2nd literal
> argument and create an explicit type based on the literal value. but it tells
> me {{AggCallBinding}} doesn't implement {{getOpreandLiteralValue}} method, is
> it possible to do so?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)