-
Notifications
You must be signed in to change notification settings - Fork 52
feat: add global system tables framework under sys database
#366
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
base: main
Are you sure you want to change the base?
Changes from all commits
da2f35a
40c237f
af38088
633ce7b
6514d09
92de892
94a2781
d959118
c5d3439
ed5857a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,8 @@ | |
|
|
||
| #include "paimon/core/catalog/file_system_catalog.h" | ||
|
|
||
| #include <algorithm> | ||
|
|
||
| #include "arrow/api.h" | ||
| #include "arrow/c/abi.h" | ||
| #include "arrow/c/bridge.h" | ||
|
|
@@ -606,8 +608,15 @@ TEST(FileSystemCatalogTest, TestInvalidList) { | |
| auto dir = UniqueTestDirectory::Create(); | ||
| ASSERT_TRUE(dir); | ||
| FileSystemCatalog catalog(core_options.GetFileSystem(), dir->Str()); | ||
| ASSERT_NOK_WITH_MSG(catalog.ListTables("sys"), | ||
| "do not support listing tables for system database."); | ||
| ASSERT_OK_AND_ASSIGN(auto sys_tables, catalog.ListTables("sys")); | ||
| ASSERT_FALSE(sys_tables.empty()); | ||
| // Verify expected global system table names are present | ||
| ASSERT_TRUE(std::find(sys_tables.begin(), sys_tables.end(), "catalog_options") != | ||
| sys_tables.end()); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Java gates |
||
| ASSERT_TRUE(std::find(sys_tables.begin(), sys_tables.end(), "all_table_options") != | ||
| sys_tables.end()); | ||
| ASSERT_TRUE(std::find(sys_tables.begin(), sys_tables.end(), "tables") != sys_tables.end()); | ||
| ASSERT_TRUE(std::find(sys_tables.begin(), sys_tables.end(), "partitions") != sys_tables.end()); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please rename the test from |
||
| } | ||
|
|
||
| TEST(FileSystemCatalogTest, TestValidateTableSchema) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please avoid default parameters in production code?