Skip to content

Conversation

@gaborfeher
Copy link

@gaborfeher gaborfeher commented May 2, 2017

What changes were proposed in this pull request?

This change removes the custom code from OracleDialect, that was mapping some of Oracle's DECIMAL(X, Y) types to BooleanType, IntegerType, LongType or FloatType.

How was this patch tested?

I used the following command to run the docker-based integration tests:

./build/mvn -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 test

@gatorsmile
Copy link
Member

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)
Copy link
Member

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.

@SparkQA
Copy link

SparkQA commented Jun 13, 2017

Test build #77952 has finished for PR 17830 at commit 3f841c7.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@gatorsmile
Copy link
Member

ping @gaborfeher

@gaborfeher
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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.)

asfgit pushed a commit that referenced this pull request Jun 24, 2017
… 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]>
ghost pushed a commit to dbtsai/spark that referenced this pull request Jun 24, 2017
… 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.
@gatorsmile
Copy link
Member

@gaborfeher Since the PR has been merged, could you please close it? Thanks!

asfgit pushed a commit that referenced this pull request Jun 24, 2017
… 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.
@asfgit asfgit closed this in b32bd00 Jun 27, 2017
robert3005 pushed a commit to palantir/spark that referenced this pull request Jun 29, 2017
… 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.
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