-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-20555][SQL] Fix mapping of Oracle DECIMAL types to Spark types #17830
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
Conversation
|
ok to test |
| assert(values.getFloat(4).equals(doubleVal.toFloat)) | ||
| assert(values.getInt(5).equals(byteVal.toInt)) | ||
| assert(values.getInt(6).equals(shortVal.toInt)) | ||
| assert(values.getDecimal(0).compareTo(BigDecimal.valueOf(booleanVal ? 1 : 0)) == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not work. The conditional operator ? : is not supported by Scala.
|
Test build #77952 has finished for PR 17830 at commit
|
|
ping @gaborfeher |
|
Hi, thanks for the review! I definitely want to continue, but I'll only have more time to look into this next week. (I don't exactly know how I ended up with that broken test, because I was able to run some tests locally. I think, at least.) |
|
This is a pretty serious bug. Let me resolve the failure as a separate PR. Will give all the credits to you when we merging the PR. Thank you for your fix! |
|
Thank you, I am happy to see the issue is taken care of! (I don't know the customs here, we can also share the credit.) |
… in read path ## What changes were proposed in this pull request? This PR is to revert some code changes in the read path of #14377. The original fix is #17830 When merging this PR, please give the credit to gaborfeher ## How was this patch tested? Added a test case to OracleIntegrationSuite.scala Author: Gabor Feher <[email protected]> Author: gatorsmile <[email protected]> Closes #18408 from gatorsmile/OracleType. (cherry picked from commit b837bf9) Signed-off-by: gatorsmile <[email protected]>
… in read path ## What changes were proposed in this pull request? This PR is to revert some code changes in the read path of apache#14377. The original fix is apache#17830 When merging this PR, please give the credit to gaborfeher ## How was this patch tested? Added a test case to OracleIntegrationSuite.scala Author: Gabor Feher <[email protected]> Author: gatorsmile <[email protected]> Closes apache#18408 from gatorsmile/OracleType.
|
@gaborfeher Since the PR has been merged, could you please close it? Thanks! |
… in read path This PR is to revert some code changes in the read path of #14377. The original fix is #17830 When merging this PR, please give the credit to gaborfeher Added a test case to OracleIntegrationSuite.scala Author: Gabor Feher <[email protected]> Author: gatorsmile <[email protected]> Closes #18408 from gatorsmile/OracleType.
… in read path ## What changes were proposed in this pull request? This PR is to revert some code changes in the read path of apache#14377. The original fix is apache#17830 When merging this PR, please give the credit to gaborfeher ## How was this patch tested? Added a test case to OracleIntegrationSuite.scala Author: Gabor Feher <[email protected]> Author: gatorsmile <[email protected]> Closes apache#18408 from gatorsmile/OracleType.
## What changes were proposed in this pull request? This PR proposes to close stale PRs, mostly the same instances with apache#18017 I believe the author in apache#14807 removed his account. Closes apache#7075 Closes apache#8927 Closes apache#9202 Closes apache#9366 Closes apache#10861 Closes apache#11420 Closes apache#12356 Closes apache#13028 Closes apache#13506 Closes apache#14191 Closes apache#14198 Closes apache#14330 Closes apache#14807 Closes apache#15839 Closes apache#16225 Closes apache#16685 Closes apache#16692 Closes apache#16995 Closes apache#17181 Closes apache#17211 Closes apache#17235 Closes apache#17237 Closes apache#17248 Closes apache#17341 Closes apache#17708 Closes apache#17716 Closes apache#17721 Closes apache#17937 Added: Closes apache#14739 Closes apache#17139 Closes apache#17445 Closes apache#18042 Closes apache#18359 Added: Closes apache#16450 Closes apache#16525 Closes apache#17738 Added: Closes apache#16458 Closes apache#16508 Closes apache#17714 Added: Closes apache#17830 Closes apache#14742 ## How was this patch tested? N/A Author: hyukjinkwon <[email protected]> Closes apache#18417 from HyukjinKwon/close-stale-pr.
What changes were proposed in this pull request?
This change removes the custom code from
OracleDialect, that was mapping some of Oracle'sDECIMAL(X, Y)types toBooleanType,IntegerType,LongTypeorFloatType.How was this patch tested?
I used the following command to run the docker-based integration tests: