Skip to content

Conversation

@shivsood
Copy link
Contributor

What changes were proposed in this pull request?

This is a port of SPARK-26499 to 2.4
Modifed JdbcUtils.makeGetter to handle ByteType.

How was this patch tested?

Added a new test to JDBCSuite that maps TINYINT to ByteType.
Closes #23400 from twdsilva/tiny_int_support.
Authored-by: Thomas D'Silva tdsilva@apache.org
Signed-off-by: Hyukjin Kwon gurwls223@apache.org

Why are the changes needed?

Changes are required to port pr #26301 (SPARK-29644) to 2.4

Does this PR introduce any user-facing change?

No

How was this patch tested?

Yes, tested on 2.4 with using docker integration test for MySQL, MsSQLServer, Postgres
sh /build/mvn test -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 -Dtest=none -DwildcardSuites=org.apache.spark.sql.jdbc.MySQLIntegrationSuite ./build/mvn test -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 -Dtest=none -DwildcardSuites=org.apache.spark.sql.jdbc.MsSqlServerIntegrationSuite ./build/mvn test -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 -Dtest=none -DwildcardSuites=org.apache.spark.sql.jdbc.PostgresIntegrationSuite

…Type

## What changes were proposed in this pull request?
Modifed JdbcUtils.makeGetter to handle ByteType.

## How was this patch tested?

Added a new test to JDBCSuite that maps ```TINYINT``` to ```ByteType```.

Closes apache#23400 from twdsilva/tiny_int_support.

Authored-by: Thomas D'Silva <tdsilva@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@shivsood
Copy link
Contributor Author

shivsood commented Nov 14, 2019

@dongjoon-hyun @maropu @srowen #26301 porting to 2.4 needs #23400 to be ported from Spark 3.0 to spark 2.4. Have created a PR for that. I will submit #26301 once this port is accepted.

@twdsilva as FYI

@dongjoon-hyun
Copy link
Member

ok to test

Copy link
Member

@maropu maropu left a comment

Choose a reason for hiding this comment

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

LGTM except for the @dongjoon-hyun comments.

@SparkQA
Copy link

SparkQA commented Nov 15, 2019

Test build #113815 has finished for PR 26531 at commit 12b115b.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 15, 2019

Test build #113821 has finished for PR 26531 at commit f7ba5f8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Merged to branch-2.4. Thank you all!

dongjoon-hyun pushed a commit that referenced this pull request Nov 15, 2019
## What changes were proposed in this pull request?
This is a port of SPARK-26499 to 2.4
Modifed JdbcUtils.makeGetter to handle ByteType.

## How was this patch tested?
Added a new test to JDBCSuite that maps ```TINYINT``` to ```ByteType```.
Closes #23400 from twdsilva/tiny_int_support.
Authored-by: Thomas D'Silva <tdsilvaapache.org>
Signed-off-by: Hyukjin Kwon <gurwls223apache.org>

### Why are the changes needed?
Changes are required to port pr #26301 (SPARK-29644) to 2.4

### Does this PR introduce any user-facing change?
No

### How was this patch tested?
Yes, tested on 2.4 with using docker integration test for MySQL, MsSQLServer, Postgres
``sh
/build/mvn test -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 -Dtest=none -DwildcardSuites=org.apache.spark.sql.jdbc.MySQLIntegrationSuite
./build/mvn test -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 -Dtest=none -DwildcardSuites=org.apache.spark.sql.jdbc.MsSqlServerIntegrationSuite
./build/mvn test -Pdocker-integration-tests -pl :spark-docker-integration-tests_2.11 -Dtest=none -DwildcardSuites=org.apache.spark.sql.jdbc.PostgresIntegrationSuite
``

Closes #26531 from shivsood/pr_26499_2.4_port.

Lead-authored-by: shivsood <shivsood@microsoft.com>
Co-authored-by: Thomas D'Silva <tdsilva@apache.org>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants