You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Jinkun Liu (Jira)" <ji...@apache.org> on 2025/10/28 14:12:00 UTC
[jira] [Comment Edited] (FLINK-37924) Support variant field accessing
[ https://issues.apache.org/jira/browse/FLINK-37924?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18033570#comment-18033570 ]
Jinkun Liu edited comment on FLINK-37924 at 10/28/25 2:11 PM:
--------------------------------------------------------------
Hi [~sxnan],
I was wondering if you have already started working on this task — I’ve looked into some of the related code under this JIRA and found it very interesting.
I believe I’m capable of implementing the feature *“Introduce Built-in Function {{VARIANT.at()}} to access a field or element in a Variant.”* I’d really appreciate the opportunity to give it a try if possible.
Here’s my current idea:
* Extend {{org.apache.flink.table.functions.BuiltInFunctionDefinitions#AT}} to include logic for the {{VARIANT}} type.
* In {{{}org.apache.flink.table.planner.codegen.ExprCodeGenerator#generateCallExpression{}}}, make the {{case: ITEM}} support the {{VARIANT}} type and implement the corresponding logic.
If I’ve misunderstood anything or made any incorrect assumptions, please feel free to point them out — I’d really appreciate your feedback and guidance.
Best regards,
Jinkun
was (Author: JIRAUSER308530):
Hi Xuannan Su,
I was wondering if you have already started working on this task — I’ve looked into some of the related code under this JIRA and found it very interesting.
I believe I’m capable of implementing the feature *“Introduce Built-in Function {{VARIANT.at()}} to access a field or element in a Variant.”* I’d really appreciate the opportunity to give it a try if possible.
Here’s my current idea:
* Extend {{{}org.apache.flink.table.functions.BuiltInFunctionDefinitions#AT{}}} to include logic for the {{VARIANT}} type.
* In {{{}org.apache.flink.table.planner.codegen.ExprCodeGenerator#generateCallExpression{}}}, make the {{case: ITEM}} support the {{VARIANT}} type and implement the corresponding logic.
If I’ve misunderstood anything or made any incorrect assumptions, please feel free to point them out — I’d really appreciate your feedback and guidance.
Best regards,
Jinkun
> Support variant field accessing
> -------------------------------
>
> Key: FLINK-37924
> URL: https://issues.apache.org/jira/browse/FLINK-37924
> Project: Flink
> Issue Type: Sub-task
> Reporter: Xuannan Su
> Assignee: Xuannan Su
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)