From 8afe49141d9b6a603eb3907f32dce802a3d05172 Mon Sep 17 00:00:00 2001 From: thomastechs Date: Thu, 25 Feb 2016 22:52:25 -0800 Subject: [PATCH] [SPARK-12941][SQL][MASTER] Spark-SQL JDBC Oracle dialect fails to map string datatypes to Oracle VARCHAR datatype ## What changes were proposed in this pull request? This Pull request is used for the fix SPARK-12941, creating a data type mapping to Oracle for the corresponding data type"Stringtype" from dataframe. This PR is for the master branch fix, where as another PR is already tested with the branch 1.4 ## How was the this patch tested? (Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests) This patch was tested using the Oracle docker .Created a new integration suite for the same.The oracle.jdbc jar was to be downloaded from the maven repository.Since there was no jdbc jar available in the maven repository, the jar was downloaded from oracle site manually and installed in the local; thus tested. So, for SparkQA test case run, the ojdbc jar might be manually placed in the local maven repository(com/oracle/ojdbc6/11.2.0.2.0) while Spark QA test run. Author: thomastechs Closes #11306 from thomastechs/master. --- docker-integration-tests/pom.xml | 13 +++ .../sql/jdbc/OracleIntegrationSuite.scala | 80 +++++++++++++++++++ .../apache/spark/sql/jdbc/OracleDialect.scala | 5 ++ 3 files changed, 98 insertions(+) create mode 100644 docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala diff --git a/docker-integration-tests/pom.xml b/docker-integration-tests/pom.xml index 833ca29cd8218..048e58d88869f 100644 --- a/docker-integration-tests/pom.xml +++ b/docker-integration-tests/pom.xml @@ -131,6 +131,19 @@ postgresql test + +