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

feat: filter out MySQL federated components' emitted statements #1439

Merged
merged 6 commits into from
Jan 16, 2024

Conversation

chunshao90
Copy link
Contributor

@chunshao90 chunshao90 commented Jan 15, 2024

Rationale

Some mysql syntax is not supported, such as show variables, and user errors will be returned.

Detailed Changes

  • Introduce server/src/federated.rs to filter some mysql syntax and return success. server/src/federated.rs inspired by greptime.
    Support following sql.
select @@version_comment
select version()
select 1
  • Modify scripts/license-header.txt.

Test Plan

Add some test and paas CI.

@chunshao90 chunshao90 changed the title WIP: feat: filter out MySQL federated components' emitted statements feat: filter out MySQL federated components' emitted statements Jan 15, 2024
@chunshao90 chunshao90 marked this pull request as ready for review January 15, 2024 06:16
evenyag
evenyag previously approved these changes Jan 15, 2024
Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

Rest LGTM

waynexia
waynexia previously approved these changes Jan 15, 2024
Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

LGTM.

BTW, this patch contains too many unrelated changes 😢

Co-authored-by: Yingwen <realevenyag@gmail.com>
@chunshao90 chunshao90 dismissed stale reviews from waynexia and evenyag via 804bf67 January 15, 2024 09:40
@chunshao90 chunshao90 merged commit c454a8e into apache:main Jan 16, 2024
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.

3 participants