[
https://issues.apache.org/jira/browse/IGNITE-26637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Orlov updated IGNITE-26637:
--------------------------------------
Fix Version/s: 3.2
> Introduce support of scalar expressions
> ---------------------------------------
>
> Key: IGNITE-26637
> URL: https://issues.apache.org/jira/browse/IGNITE-26637
> Project: Ignite
> Issue Type: Improvement
> Components: sql ai3
> Reporter: Konstantin Orlov
> Assignee: Konstantin Orlov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.2
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Scalar expressions is required to implement column's default expression.
> The proposed API is as follow:
> {code}
> @FunctionalInterface
> public interface IgniteScalar<ResultT> {
> ResultT get(EvaluationContext context);
> }
> public interface ExpressionFactory {
> /**
> * Creates scalar expression.
> *
> * @param expression String representation of expression to create.
> * @param resultType A required type of the result.
> * @return A scalar representing the provided expression.
> * @param <ResultT> A type of the result.
> */
> <ResultT> IgniteScalar<ResultT> scalar(String expression, NativeType
> resultType);
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)