Skip to content

feat: Procedure to create table and register table to catalog#1040

Merged
v0y4g3r merged 12 commits intoGreptimeTeam:developfrom
evenyag:feat/procedure-create
Feb 27, 2023
Merged

feat: Procedure to create table and register table to catalog#1040
v0y4g3r merged 12 commits intoGreptimeTeam:developfrom
evenyag:feat/procedure-create

Conversation

@evenyag
Copy link
Copy Markdown
Contributor

@evenyag evenyag commented Feb 20, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This PR

  • Implements a procedure CreateTableProcedure to create a table and register the table to catalog.
  • Adds a new crate table-procedure for table-related procedures.
  • Add options to use procedure to create table (disabled by default).

Configuration section example:

[procedure.store]
type = 'File'
data_dir = '/path/to/procedure/'

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@evenyag evenyag force-pushed the feat/procedure-create branch 2 times, most recently from 901bff8 to 32353a3 Compare February 21, 2023 11:34
@evenyag evenyag marked this pull request as ready for review February 22, 2023 08:43
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 22, 2023

Codecov Report

Merging #1040 (f83b848) into develop (df751c3) will decrease coverage by 0.17%.
The diff coverage is 67.00%.

@@             Coverage Diff             @@
##           develop    #1040      +/-   ##
===========================================
- Coverage    85.47%   85.31%   -0.17%     
===========================================
  Files          455      458       +3     
  Lines        66285    66684     +399     
===========================================
+ Hits         56659    56889     +230     
- Misses        9626     9795     +169     

Comment thread src/table-procedure/src/create.rs
Comment thread src/table-procedure/src/create.rs Outdated
Comment thread src/table-procedure/src/create.rs Outdated
Comment thread src/datanode/src/error.rs Outdated
Comment thread src/table-procedure/Cargo.toml Outdated
Comment thread src/table-procedure/src/create.rs
@evenyag evenyag force-pushed the feat/procedure-create branch from 371ec34 to f83b848 Compare February 27, 2023 03:23
Copy link
Copy Markdown
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

L6TM

@v0y4g3r v0y4g3r merged commit bd377ef into GreptimeTeam:develop Feb 27, 2023
@evenyag evenyag deleted the feat/procedure-create branch February 27, 2023 06:39
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
…meTeam#1040)

* feat: Add table-procedures crate

* feat: Implement procedure to create table

* feat: Integrate procedure manager to datanode

* test: Test CreateTableProcedure

* refactor: Rename table-procedures to table-procedure

* feat: Implement create_table_by_procedure

* chore: Remove comment

* chore: Add todo

* feat: Add procedure config to standalone mode

* feat: Register table-procedure loaders

* feat: Address review comments

CreateTableProcedure just return error if the subprocedure is failed

* chore: Address CR comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants