Skip to content

[CALCITE-7682] SESSION table function without the optional key descriptor fails at runtime - #5139

Open
mihaibudiu wants to merge 1 commit into
apache:mainfrom
mihaibudiu:issue7682
Open

[CALCITE-7682] SESSION table function without the optional key descriptor fails at runtime#5139
mihaibudiu wants to merge 1 commit into
apache:mainfrom
mihaibudiu:issue7682

Conversation

@mihaibudiu

Copy link
Copy Markdown
Contributor

Jira Link

CALCITE-7682

Changes Proposed

If the session key is not supplied, use the null value at runtime instead, placing all rows in a single timeline.

…ptor fails at runtime

Signed-off-by: Mihai Budiu <mbudiu@feldera.com>
@sonarqubecloud

Copy link
Copy Markdown


# Test case for [CALCITE-7682] SESSION table function without the optional key
# descriptor fails at runtime.
SELECT * FROM TABLE(SESSION(TABLE ORDERS, DESCRIPTOR(ROWTIME), INTERVAL '1' HOUR));

@xuzifu666 xuzifu666 Aug 3, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have we verified these results on a streaming data computing engine(eg. Flink)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't run them, but the Flink playground https://kafka-options-explorer.conduktor.io/flink-sql accepts these queries, which used to crash.

I think the data is small enough that they can be validated manually. I don't have access to a Flink installation.

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