Skip to content
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

fix: alter table procedure panics while renaming table #2397

Merged
merged 4 commits into from
Sep 14, 2023

Conversation

evenyag
Copy link
Contributor

@evenyag evenyag commented Sep 14, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

This PR fixes panics while using the AlterTableProcedure to rename a table.

It fixes integration tests for renaming. It also fixes grpc tests that use incorrect semantic type. Now the following tests pass:

  • test_create_table_after_rename_table
  • test_rename_table
  • test_standalone_insert_and_query
  • test_distributed_insert_delete_and_query

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 marked this pull request as ready for review September 14, 2023 11:35
@codecov
Copy link

codecov bot commented Sep 14, 2023

Codecov Report

Merging #2397 (bf5e45e) into develop (7bb8a59) will decrease coverage by 0.01%.
The diff coverage is 85.71%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2397      +/-   ##
===========================================
- Coverage    77.52%   77.52%   -0.01%     
===========================================
  Files          717      717              
  Lines       113980   113982       +2     
===========================================
- Hits         88365    88364       -1     
- Misses       25615    25618       +3     

Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LGTM

@MichaelScofield MichaelScofield added this pull request to the merge queue Sep 14, 2023
Merged via the queue into GreptimeTeam:develop with commit a84a8ad Sep 14, 2023
25 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
…2397)

* fix: procedure panic on renaming table

* test: fix test_insert_and_select invalid arguments

* test: fix test_standalone_insert_and_query using wrong semantic type

* test: fix test_distributed_insert_delete_and_query semantic type
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