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

[KYUUBI #728] Support SQL State: 0A000 - feature_not_supported #729

Closed
wants to merge 3 commits into from

Conversation

zhaomin1423
Copy link
Member

Why are the changes needed?

Follow #670 to:
Apply errorCode 0A000: feature_not_supported to val errStatus = KyuubiSQLException("Feature is not @available").toTStatus

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

@codecov-commenter
Copy link

codecov-commenter commented Jun 30, 2021

Codecov Report

Merging #729 (396e70d) into master (84c07a6) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #729   +/-   ##
=======================================
  Coverage   80.49%   80.50%           
=======================================
  Files         122      122           
  Lines        4748     4749    +1     
  Branches      576      576           
=======================================
+ Hits         3822     3823    +1     
  Misses        605      605           
  Partials      321      321           
Impacted Files Coverage Δ
...n/scala/org/apache/kyuubi/KyuubiSQLException.scala 87.35% <100.00%> (+0.14%) ⬆️
...la/org/apache/kyuubi/service/FrontendService.scala 97.01% <100.00%> (ø)
...org/apache/kyuubi/ha/client/ServiceDiscovery.scala 55.62% <0.00%> (-0.27%) ⬇️
...uubi/engine/spark/operation/ExecuteStatement.scala 86.15% <0.00%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84c07a6...396e70d. Read the comment docs.

@yaooqinn
Copy link
Member

yaooqinn commented Jun 30, 2021

we shall call this at FrontendService for unsupported features

@ulysses-you ulysses-you changed the title [KYUUBI #728] 0A000: feature_not_supported [KYUUBI #728] Support SQL State: 0A000 - feature_not_supported Jun 30, 2021
@@ -81,6 +81,10 @@ object KyuubiSQLException {
}
}

def featureNotSupported(): KyuubiSQLException = {
KyuubiSQLException("feature not supported", sqlState = "0A000")
}
Copy link
Member

Choose a reason for hiding this comment

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

could you invoke it in the FrontendService for unsupported operation?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@ulysses-you
Copy link
Contributor

thanks, merging to master for v1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature Feature request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants