Skip to content

Commit

Permalink
fix ci err
Browse files Browse the repository at this point in the history
  • Loading branch information
TCeason committed Aug 14, 2024
1 parent 7880782 commit 14f2bcb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ async fn test_simple_sql() -> Result<()> {
assert_eq!(result.state, ExecuteStateKind::Succeeded, "{:?}", result);
assert_eq!(result.next_uri, Some(final_uri.clone()), "{:?}", result);
assert_eq!(result.data.len(), 10, "{:?}", result);
assert_eq!(result.schema.len(), 20, "{:?}", result);
assert_eq!(result.schema.len(), 21, "{:?}", result);

// get state
let uri = result.stats_uri.unwrap();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ DB.Table: 'system'.'columns', Table: columns-table_id:1, ver:0, Engine: SystemCo
| 'table_schema' | 'information_schema' | 'tables' | 'String' | 'VARCHAR' | '' | '' | 'NO' | '' |
| 'table_schema' | 'information_schema' | 'views' | 'String' | 'VARCHAR' | '' | '' | 'NO' | '' |
| 'table_type' | 'information_schema' | 'tables' | 'String' | 'VARCHAR' | '' | '' | 'NO' | '' |
| 'table_type' | 'system' | 'tables' | 'String' | 'VARCHAR' | '' | '' | 'NO' | '' |
| 'table_type' | 'system' | 'tables_with_history' | 'String' | 'VARCHAR' | '' | '' | 'NO' | '' |
| 'table_version' | 'system' | 'streams' | 'Nullable(UInt64)' | 'BIGINT UNSIGNED' | '' | '' | 'YES' | '' |
| 'tables' | 'system' | 'query_log' | 'String' | 'VARCHAR' | '' | '' | 'NO' | '' |
| 'target_features' | 'system' | 'build_options' | 'String' | 'VARCHAR' | '' | '' | 'NO' | '' |
Expand Down
6 changes: 3 additions & 3 deletions src/query/storages/system/src/tables_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,10 @@ where TablesTable<WITH_HISTORY, WITHOUT_VIEW>: HistoryAware
let tables_type: Vec<String> = database_tables
.iter()
.map(|v| {
if v.engine().to_uppercase() == "FUSE" {
"BASE TABLE".to_string()
} else {
if v.engine().to_uppercase() == "VIEW" {
"VIEW".to_string()
} else {
"BASE TABLE".to_string()
}
})
.collect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ number_of_blocks BIGINT UNSIGNED YES NULL NULL
number_of_segments BIGINT UNSIGNED YES NULL NULL
owner VARCHAR YES NULL NULL
table_id BIGINT UNSIGNED NO NULL NULL
table_type VARCHAR NO NULL NULL
updated_on TIMESTAMP NO NULL NULL
Error: APIError: ResponseError with 1063: Permission denied: User 'a'@'%' does not have the required privileges for database 'nogrant'
1
Expand Down

0 comments on commit 14f2bcb

Please sign in to comment.