Skip to content

Commit

Permalink
[fix](information_schema) fix test_query_sys_tables schema_privileges…
Browse files Browse the repository at this point in the history
… regression case. (apache#26753)
  • Loading branch information
hubgeter authored Nov 13, 2023
1 parent d71104f commit 8160a04
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ suite("test_query_sys_tables", "query,p0") {
// test table_privileges
sql """ DROP USER if exists 'cywtable'; """
qt_desc_table_privileges """desc `information_schema`.`table_privileges` """
order_qt_table_privileges """ select * from information_schema.table_privileges """
order_qt_table_privileges """ select * from information_schema.table_privileges where GRANTEE = "'cywtable'@'%'" ; """
sql """ CREATE USER 'cywtable'; """
sql """ CREATE DATABASE IF NOT EXISTS table_privileges_demo """
sql """ create table IF NOT EXISTS table_privileges_demo.test_table_privileges(
Expand All @@ -129,9 +129,9 @@ suite("test_query_sys_tables", "query,p0") {
);"""

sql """ GRANT SELECT_PRIV,ALTER_PRIV,LOAD_PRIV ON table_privileges_demo.test_table_privileges TO 'cywtable'@'%'; """
order_qt_table_privileges2 """ select * from information_schema.table_privileges order by PRIVILEGE_TYPE ; """
order_qt_table_privileges2 """ select * from information_schema.table_privileges where GRANTEE = "'cywtable'@'%'" order by PRIVILEGE_TYPE ; """
sql """ REVOKE SELECT_PRIV ON table_privileges_demo.test_table_privileges FROM 'cywtable'@'%'; """
order_qt_table_privileges3 """ select * from information_schema.table_privileges order by PRIVILEGE_TYPE ; """
order_qt_table_privileges3 """ select * from information_schema.table_privileges where GRANTEE = "'cywtable'@'%'" order by PRIVILEGE_TYPE ; """


// test partitions
Expand Down

0 comments on commit 8160a04

Please sign in to comment.