Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

add logic to maintain cluster level information, namespace info, and table info in catalog manager #56

Merged
merged 10 commits into from
Dec 9, 2020

Conversation

johnfangAFW
Copy link
Contributor

The work consists of

  1. move catalog manager related code to its own catalog subfolder
  2. Added ClusterInfoHandler to access cluster level information
  3. Added NamespaceInfoHandler to access namespace information, i.e., the shared database list
  4. Added TableInfoHandler to access TableInfo and IndexInfo
  5. Added logic in catalog manager to implement namespace and table operations
  6. Updated catalog client to the new catalog manager APIs.

Not included and will be addressed by new PRs

  1. create namespace (database)
  2. non-blocking APIs for catalog manager

@johnfangAFW johnfangAFW added sql m0.1 Minimal sql txn labels Nov 24, 2020
@johnfangAFW johnfangAFW added this to the SQL milestone Nov 24, 2020
@johnfangAFW johnfangAFW self-assigned this Nov 24, 2020
jfunston and others added 2 commits November 24, 2020 13:39
* K2 adapter GetRowID implementation

* Handle null values in MakeSKVRecordWithKeysSerialized. Revise some comments

Co-authored-by: Justin Funston <justin.funston@futurewei.com>
src/k2/connector/yb/pggate/k2_adapter.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/k2_adapter.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/k2_adapter.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@jerryhfeng jerryhfeng left a comment

Choose a reason for hiding this comment

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

Great big chunk of changes!

Some comments need to be addressed. Thx!

src/k2/connector/yb/entities/index.h Show resolved Hide resolved
src/k2/connector/yb/pggate/CMakeLists.txt Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/cluster_info_handler.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_manager.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_manager.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_manager.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_manager.cc Outdated Show resolved Hide resolved
jerryhfeng
jerryhfeng previously approved these changes Dec 4, 2020
Copy link
Contributor

@jerryhfeng jerryhfeng left a comment

Choose a reason for hiding this comment

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

Approve this change, but still there a a few issues we should discuss in group, especially the mapping of schema between PG and SKV. We can make the change resulted from discussion later after this PR though. Suggest we discuss this in this afternoon meeting.

src/k2/connector/yb/entities/index.h Outdated Show resolved Hide resolved
src/k2/connector/yb/entities/index.h Outdated Show resolved Hide resolved
src/k2/connector/yb/entities/index.h Show resolved Hide resolved
src/k2/connector/yb/entities/schema.h Show resolved Hide resolved
src/k2/connector/yb/entities/table.h Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_client.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_client.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_client.cc Outdated Show resolved Hide resolved
src/k2/connector/yb/pggate/catalog/sql_catalog_defaults.h Outdated Show resolved Hide resolved
@jfunston jfunston merged commit 4a7e95e into master Dec 9, 2020
@johnfangAFW johnfangAFW deleted the cluster-and-table-info branch December 9, 2020 19:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
m0.1 Minimal sql txn sql
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add logic to maintain cluster level logic Implement Create Table DDL
4 participants