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 GetTables operation in Flink #3498

Closed
wants to merge 4 commits into from
Closed

Conversation

cxzl25
Copy link
Contributor

@cxzl25 cxzl25 commented Sep 16, 2022

Why are the changes needed?

#1646

In Flink, the schema returned by GetTables is incorrect, causing some database management tools to not see the table.

How was this patch tested?

  • Add some test cases that check the changes thoroughly including negative and positive cases if possible

  • Add screenshots for manual tests if appropriate

  • Run test locally before make a pull request

@cxzl25
Copy link
Contributor Author

cxzl25 commented Sep 16, 2022

Fix

image

@pan3793 pan3793 added this to the v1.6.1 milestone Sep 16, 2022
@pan3793 pan3793 added the kind:bug This is a clearly a bug label Sep 16, 2022
Copy link
Member

@pan3793 pan3793 left a comment

Choose a reason for hiding this comment

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

Thanks for the investigation and fixing, LGTM, only minor comments

@pan3793 pan3793 changed the title Refactor GetTables operation in Flink Fix GetTables operation in Flink Sep 16, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #3498 (cba0613) into master (15fa49d) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head cba0613 differs from pull request most recent head 6e51487. Consider uploading reports for the commit 6e51487 to get more accurate results

@@             Coverage Diff              @@
##             master    #3498      +/-   ##
============================================
- Coverage     51.65%   51.64%   -0.02%     
  Complexity       13       13              
============================================
  Files           482      482              
  Lines         26933    26933              
  Branches       3760     3760              
============================================
- Hits          13913    13910       -3     
- Misses        11663    11664       +1     
- Partials       1357     1359       +2     
Impacted Files Coverage Δ
...ain/scala/org/apache/kyuubi/engine/EngineRef.scala 72.26% <0.00%> (-0.85%) ⬇️
...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala 80.74% <0.00%> (-0.63%) ⬇️
...in/scala/org/apache/kyuubi/config/KyuubiConf.scala 97.23% <0.00%> (-0.08%) ⬇️
...org/apache/kyuubi/operation/ExecuteStatement.scala 80.51% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@pan3793
Copy link
Member

pan3793 commented Sep 17, 2022

Thanks, merging to master/1.6

@pan3793 pan3793 closed this in dce40c3 Sep 17, 2022
pan3793 pushed a commit that referenced this pull request Sep 17, 2022
### _Why are the changes needed?_
#1646

In Flink, the schema returned by `GetTables` is incorrect, causing some database management tools to not see the table.

### _How was this patch tested?_
- [x] Add some test cases that check the changes thoroughly including negative and positive cases if possible

- [x] Add screenshots for manual tests if appropriate

- [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request

Closes #3498 from cxzl25/flink_get_tables.

Closes #3498

6e51487 [sychen] compile
cba0613 [sychen] toArray
37bd6aa [sychen] style
93fb80c [sychen] GetTables

Authored-by: sychen <[email protected]>
Signed-off-by: Cheng Pan <[email protected]>
(cherry picked from commit dce40c3)
Signed-off-by: Cheng Pan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug module:flink
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants