confluentinc / confluentinc/ksql

Field negative expression - user experience improvement

Open
#2,199 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
315
Forks
1k
Avg merge
1d 7h
Merged PRs (30d)
36

Description

ksql> select -O.ROWTIME from VS_HGAME_ORDERS_N111_STREAM O;
Code generation failed for SelectValueMapper
Caused by: Line 1, Column 11: Expression "O_ROWTIME" is not an rvalue

ksql> select -(O.ROWTIME) from VS_HGAME_ORDERS_N111_STREAM O;
Code generation failed for SelectValueMapper
Caused by: Line 1, Column 11: Expression "O_ROWTIME" is not an rvalue

ksql> select 0-(O.ROWTIME) from VS_HGAME_ORDERS_N111_STREAM O;
-1538029287000

Contributor guide

Open the contributing guide

Research direction

Reproduce the three SELECT expressions in the ksql CLI against the stated stream and compare the parser or code-generation errors with the successful 0-(O.ROWTIME) form. Trace the handling of unary negative expressions and field references, then verify that the intended negative field expression works without the not-an-rvalue failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, sql
Domain
databases, stream-processing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.