Skip to content
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

[SPARK-5123][SQL] Reconcile Java/Scala API for data types. #3958

Closed
wants to merge 1 commit into from

Conversation

rxin
Copy link
Contributor

@rxin rxin commented Jan 8, 2015

Having two versions of the data type APIs (one for Java, one for Scala) requires downstream libraries to also have two versions of the APIs if the library wants to support both Java and Scala. I took a look at the Scala version of the data type APIs - it can actually work out pretty well for Java out of the box.

As part of the PR, I created a sql.types package and moved all type definitions there. I then removed the Java specific data type API along with a lot of the conversion code.

This subsumes #3925

@SparkQA
Copy link

SparkQA commented Jan 8, 2015

Test build #25272 has started for PR 3958 at commit b4f9649.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 9, 2015

Test build #25272 has finished for PR 3958 at commit b4f9649.

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

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25272/
Test FAILed.

trait PrimitiveType extends DataType {
override def isPrimitive = true
}


Copy link
Contributor

Choose a reason for hiding this comment

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

Double newlines here?

@marmbrus
Copy link
Contributor

Okay, the other PR is in, if you fix the merge conflicts this LGTM. We also need to figure out how to publish scala/java docs here.

@rxin
Copy link
Contributor Author

rxin commented Jan 13, 2015

I just rebased. Let's see ...

@SparkQA
Copy link

SparkQA commented Jan 13, 2015

Test build #25487 has started for PR 3958 at commit 66505cc.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Jan 13, 2015

Test build #25487 has finished for PR 3958 at commit 66505cc.

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

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25487/
Test FAILed.

@rxin
Copy link
Contributor Author

rxin commented Jan 14, 2015

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Jan 14, 2015

Test build #25492 has started for PR 3958 at commit 66505cc.

  • This patch merges cleanly.

@JoshRosen
Copy link
Contributor

You might want to copy the commit message over from the other PR.

@rxin
Copy link
Contributor Author

rxin commented Jan 14, 2015

done - thanks for reminding, josh.

@rxin rxin changed the title [SPARK-5123] Expose only one version of the data type APIs (i.e. remove the Java-specific API). [SPARK-5123][SQL] Reconcile Java/Scala API for data types. Jan 14, 2015
@rxin
Copy link
Contributor Author

rxin commented Jan 14, 2015

Ok merging in master. Thanks for looking at this.

@asfgit asfgit closed this in f996909 Jan 14, 2015
@SparkQA
Copy link

SparkQA commented Jan 14, 2015

Test build #25492 has finished for PR 3958 at commit 66505cc.

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

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/25492/
Test PASSed.

@rxin rxin deleted the SPARK-5123-datatype-2 branch January 14, 2015 08:07
asfgit pushed a commit that referenced this pull request Jan 17, 2015
After the following patches, the main (Scala) API is now usable for Java users directly.

#4056
#4054
#4049
#4030
#3965
#3958

Author: Reynold Xin <rxin@databricks.com>

Closes #4065 from rxin/sql-java-api and squashes the following commits:

b1fd860 [Reynold Xin] Fix Mima
6d86578 [Reynold Xin] Ok one more attempt in fixing Python...
e8f1455 [Reynold Xin] Fix Python again...
3e53f91 [Reynold Xin] Fixed Python.
83735da [Reynold Xin] Fix BigDecimal test.
e9f1de3 [Reynold Xin] Use scala BigDecimal.
500d2c4 [Reynold Xin] Fix Decimal.
ba3bfa2 [Reynold Xin] Updated javadoc for RowFactory.
c4ae1c5 [Reynold Xin] [SPARK-5193][SQL] Remove Spark SQL Java-specific API.
andmarios pushed a commit to andmarios/spark-examples that referenced this pull request Mar 20, 2015
After the following patches, the main (Scala) API is now usable for Java users directly.

apache/spark#4056
apache/spark#4054
apache/spark#4049
apache/spark#4030
apache/spark#3965
apache/spark#3958

Author: Reynold Xin <rxin@databricks.com>

Closes #4065 from rxin/sql-java-api and squashes the following commits:

b1fd860 [Reynold Xin] Fix Mima
6d86578 [Reynold Xin] Ok one more attempt in fixing Python...
e8f1455 [Reynold Xin] Fix Python again...
3e53f91 [Reynold Xin] Fixed Python.
83735da [Reynold Xin] Fix BigDecimal test.
e9f1de3 [Reynold Xin] Use scala BigDecimal.
500d2c4 [Reynold Xin] Fix Decimal.
ba3bfa2 [Reynold Xin] Updated javadoc for RowFactory.
c4ae1c5 [Reynold Xin] [SPARK-5193][SQL] Remove Spark SQL Java-specific API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants