Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Expose the query operator as Flink SQL client done for the select query. #6880

Open
3 of 4 tasks
Whojohn opened this issue Jan 6, 2025 · 0 comments
Open
3 of 4 tasks
Labels

Comments

@Whojohn
Copy link

Whojohn commented Jan 6, 2025

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the feature

which feature we need

Expose the query operator as Flink SQL client done for the select query.

query like this

select sum(a) ,count(*) from sou
  • before this feature(data return as duplicate, make user confuse)
    +--------------+---------+------------+
    | EXPR$0 | EXPR$1 |
    +--------------+---------+------------+
    | -1861035379 | 1 |
    | -1861035379 | 1 |
    | -317406356 | 2 |
    | -317406356 | 2 |
    | -684766290 | 3 |
    | -684766290 | 3 |

  • after (as flink sql client table SET 'sql-client.execution.result-mode' = 'changelog'; setting )
    +--------------+---------+------------+
    | EXPR$0 | EXPR$1 | op |
    +--------------+---------+------------+
    | -1861035379 | 1 | +I |
    | -1861035379 | 1 | -U |
    | -317406356 | 2 | +U |
    | -317406356 | 2 | -U |
    | -684766290 | 3 | +U |
    | -684766290 | 3 | -U |

Motivation

why is nessary ?

The concept of changelog is specific to Flink SQL. If the operation is not exposed, users will be confused when using JDBC/Beeline.

Describe the solution

  1. FlinkOperation add operator column meta.
  2. FlinkTRowSetGenerator add opeartor as rowdata return .

Additional context

No response

Are you willing to submit PR?

  • Yes. I would be willing to submit a PR with guidance from the Kyuubi community to improve.
  • No. I cannot submit a PR at this time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant