Uh oh!
There was an error while loading. Please reload this page.
[SPARK-20555][SQL] Fix mapping of Oracle DECIMAL types to Spark types - #17830
[SPARK-20555][SQL] Fix mapping of Oracle DECIMAL types to Spark types#17830gaborfeher wants to merge 3 commits into
Conversation
gatorsmile
commented
Jun 12, 2017
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.
This does not work. The conditional operator ? : is not supported by Scala.
SparkQA
commented
Jun 13, 2017
Test build #77952 has finished for PR 17830 at commit
|
gatorsmile
commented
Jun 21, 2017
ping @gaborfeher |
gaborfeher
commented
Jun 22, 2017
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.) |
gatorsmile
commented
Jun 23, 2017
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! |
gaborfeher
commented
Jun 23, 2017
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 <gabor.feher@lynxanalytics.com> Author: gatorsmile <gatorsmile@gmail.com> Closes#18408 from gatorsmile/OracleType. (cherry picked from commit b837bf9) Signed-off-by: gatorsmile <gatorsmile@gmail.com>
… 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 <gabor.feher@lynxanalytics.com> Author: gatorsmile <gatorsmile@gmail.com> Closesapache#18408 from gatorsmile/OracleType.
gatorsmile
commented
Jun 24, 2017
@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 <gabor.feher@lynxanalytics.com> Author: gatorsmile <gatorsmile@gmail.com> 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 <gabor.feher@lynxanalytics.com> Author: gatorsmile <gatorsmile@gmail.com> Closesapache#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. Closesapache#7075Closesapache#8927Closesapache#9202Closesapache#9366Closesapache#10861Closesapache#11420Closesapache#12356Closesapache#13028Closesapache#13506Closesapache#14191Closesapache#14198Closesapache#14330Closesapache#14807Closesapache#15839Closesapache#16225Closesapache#16685Closesapache#16692Closesapache#16995Closesapache#17181Closesapache#17211Closesapache#17235Closesapache#17237Closesapache#17248Closesapache#17341Closesapache#17708Closesapache#17716Closesapache#17721Closesapache#17937 Added: Closesapache#14739Closesapache#17139Closesapache#17445Closesapache#18042Closesapache#18359 Added: Closesapache#16450Closesapache#16525Closesapache#17738 Added: Closesapache#16458Closesapache#16508Closesapache#17714 Added: Closesapache#17830Closesapache#14742 ## How was this patch tested? N/A Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#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: