Skip to content

Commit

Permalink
2
Browse files Browse the repository at this point in the history
  • Loading branch information
morningman committed Sep 6, 2024
1 parent e9b29c4 commit baa06af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1470,6 +1470,7 @@ private static TRow generatePartitionsRowForUnpartitionedTable(String ctlName, S
trow.addToColumnValue(new TCell().setStringVal("")); // PARTITION_COMMENT (not available)
trow.addToColumnValue(new TCell().setStringVal("")); // NODEGROUP (not available)
trow.addToColumnValue(new TCell().setStringVal("")); // TABLESPACE_NAME (not available)
return trow;
}

private static TFetchSchemaTableDataResult partitionsMetadataResult(TSchemaTableRequestParams params) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ internal test_partitions_schema_db test_row_column_page_size1 test_row_column_pa
-- !select_check_3 --

-- !select_check_4 --
internal test_partitions_schema_db duplicate_table duplicate_table NULL 0 0 UNPARTITIONED NULL NULL NULL NULL -1 0 0 0 0 0 0
duplicate_table

-- !select_check_5 --

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ suite("test_partitions_schema") {
sql """
sync
"""
sql """analyze table test_range_table with sync"""
// check row count here will wait 1 min before BE report
checkRowCount(9);

qt_select_check_0 """select table_name,partition_name,table_rows from information_schema.partitions where table_schema=\"${dbName}\" order by $listOfColum"""
Expand Down Expand Up @@ -184,12 +186,12 @@ suite("test_partitions_schema") {

sql "GRANT SELECT_PRIV ON ${dbName}.duplicate_table TO ${user}"
connect(user=user, password='123abc!@#', url=url) {
qt_select_check_4 """select $listOfColum from information_schema.partitions where table_schema=\"${dbName}\" order by $listOfColum"""
qt_select_check_4 """select TABLE_NAME from information_schema.partitions where table_schema=\"${dbName}\" order by $listOfColum"""
}

sql "REVOKE SELECT_PRIV ON ${dbName}.duplicate_table FROM ${user}"
connect(user=user, password='123abc!@#', url=url) {
qt_select_check_5 """select $listOfColum from information_schema.partitions where table_schema=\"${dbName}\" order by $listOfColum"""
qt_select_check_5 """select TABLE_NAME from information_schema.partitions where table_schema=\"${dbName}\" order by $listOfColum"""
}

}

0 comments on commit baa06af

Please sign in to comment.