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: add session and system functions #1883

Merged
merged 2 commits into from
Jan 6, 2024
Merged

Conversation

Kree0
Copy link
Contributor

@Kree0 Kree0 commented Jan 2, 2024

Required checklist

  • Sample config files updated (config,meta/config and default config)
  • If there are user-facing changes, the documentation needs to be updated prior to approving the PR( Link )
  • If there are any breaking changes to public APIs, please add the api change label.
  • Signed CLA (if not already signed)

Which issue does this PR close?

#1659 #1660 #1661 #1662 #1663
#1664 #1665 #1666 #1667 #1668
#1575 #1753

Rationale for this change

add functions:

select current_role();
select current_user();
select current_tenant();
select current_database();
select @@cluster_name;
select @@server_version;
select @@deployment_mode;
select @@node_id;

fix: root’s role information is no displayed under the default tenant

fix: make the returned message unclear when the username and password do not match

Are there any user-facing changes?

@Kree0 Kree0 force-pushed the add_functions branch 3 times, most recently from 71dfcb6 to 12ea55c Compare January 2, 2024 08:29
@roseboy-liu
Copy link
Contributor

more test case for your feature

@Kree0 Kree0 force-pushed the add_functions branch 2 times, most recently from 35c96dd to 5455d5a Compare January 4, 2024 07:38
Copy link
Contributor

@roseboy-liu roseboy-liu left a comment

Choose a reason for hiding this comment

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

add role information to cache

fix: root’s role information is no displayed under the default tenant

fix: make the returned message unclear when the username and password do not match
@roseboy-liu roseboy-liu merged commit 5ea78a5 into cnosdb:main Jan 6, 2024
7 checks passed
@Kree0 Kree0 deleted the add_functions branch January 8, 2024 07:13
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.

None yet

2 participants