You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by rxin <gi...@git.apache.org> on 2015/01/31 07:29:26 UTC
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
GitHub user rxin opened a pull request:
https://github.com/apache/spark/pull/4296
[SQL] Improve DataFrame API error reporting
1. Throw UnsupportedOperationException if a Column is not computable.
2. Perform eager analysis on DataFrame so we can catch errors when they happen (not when an action is run).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rxin/spark col-computability
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/4296.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4296
----
commit ee2b1e4de01c1e876949428c719d12d0b4e40135
Author: Reynold Xin <rx...@databricks.com>
Date: 2015-01-31T06:04:18Z
[SQL][API] ComputableColumn vs IncomputableColumn
This patch changes Column from a concrete implementation to a trait, and provides two
concrete implementations: IncomputableColumn and ComputableColumn.
commit 265fde7a15e2a8492c2ca96a863754b9c1bda678
Author: Reynold Xin <rx...@databricks.com>
Date: 2015-01-31T06:27:42Z
Added eager analysis for error reporting.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72405807
[Test build #26487 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26487/consoleFull) for PR 4296 at commit [`17f6bae`](https://github.com/apache/spark/commit/17f6bae783362076c977aae834792dc94cffca94).
* This patch **fails Spark unit tests**.
* This patch merges cleanly.
* This patch adds the following public classes _(experimental)_:
* `trait Column extends DataFrame with ExpressionApi `
* `class ColumnName(name: String) extends IncomputableColumn(name) `
* `trait DataFrame extends DataFrameSpecificApi with RDDApi[Row] `
* `class GroupedDataFrame protected[sql](df: DataFrameImpl, groupingExprs: Seq[Expression])`
* ` protected[sql] class QueryExecution(val logical: LogicalPlan) `
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by marmbrus <gi...@git.apache.org>.
Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/4296#discussion_r23905446
--- Diff: sql/core/src/test/scala/org/apache/spark/sql/DataFrameSuite.scala ---
@@ -28,6 +28,21 @@ import scala.language.postfixOps
class DataFrameSuite extends QueryTest {
import org.apache.spark.sql.TestData._
+ test("analysis error should be eagerly reported") {
+ intercept[Exception] { testData.select('nonExistentName) }
+ intercept[Exception] {
+ testData.groupBy('key).agg(Map("nonExistentName" -> "sum"))
+ }
+ intercept[Exception] {
+ testData.groupBy("nonExistentName").agg(Map("key" -> "sum"))
--- End diff --
Why isn't this `(String, String)*`?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72405811
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26487/
Test FAILed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72405245
[Test build #26487 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26487/consoleFull) for PR 4296 at commit [`17f6bae`](https://github.com/apache/spark/commit/17f6bae783362076c977aae834792dc94cffca94).
* This patch merges cleanly.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72558500
[Test build #26553 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26553/consoleFull) for PR 4296 at commit [`5afe1ff`](https://github.com/apache/spark/commit/5afe1ffd761fa4cf7d8c59e3f7fa78e340d29f9d).
* This patch merges cleanly.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72584164
@rxin this test failure was spurious. It is safe to merge.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72583465
Jenkins, test this please
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72572314
[Test build #26564 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26564/consoleFull) for PR 4296 at commit [`6527b86`](https://github.com/apache/spark/commit/6527b8657d0415278101e352de4cd25d0631c597).
* This patch merges cleanly.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72582481
[Test build #26564 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26564/consoleFull) for PR 4296 at commit [`6527b86`](https://github.com/apache/spark/commit/6527b8657d0415278101e352de4cd25d0631c597).
* This patch **passes all tests**.
* This patch merges cleanly.
* This patch adds the following public classes _(experimental)_:
* `class LogisticGradient(numClasses: Int) extends Gradient `
* `trait Column extends DataFrame with ExpressionApi `
* `class ColumnName(name: String) extends IncomputableColumn(name) `
* `trait DataFrame extends DataFrameSpecificApi with RDDApi[Row] `
* `class GroupedDataFrame protected[sql](df: DataFrameImpl, groupingExprs: Seq[Expression])`
* ` protected[sql] class QueryExecution(val logical: LogicalPlan) `
* `case class HiveScriptIOSchema (`
* ` val trimed_class = serdeClassName.split("'")(1)`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72591497
[Test build #26587 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26587/consoleFull) for PR 4296 at commit [`6527b86`](https://github.com/apache/spark/commit/6527b8657d0415278101e352de4cd25d0631c597).
* This patch **passes all tests**.
* This patch merges cleanly.
* This patch adds the following public classes _(experimental)_:
* `trait Column extends DataFrame with ExpressionApi `
* `class ColumnName(name: String) extends IncomputableColumn(name) `
* `trait DataFrame extends DataFrameSpecificApi with RDDApi[Row] `
* `class GroupedDataFrame protected[sql](df: DataFrameImpl, groupingExprs: Seq[Expression])`
* ` protected[sql] class QueryExecution(val logical: LogicalPlan) `
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72307017
[Test build #26456 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26456/consoleFull) for PR 4296 at commit [`265fde7`](https://github.com/apache/spark/commit/265fde7a15e2a8492c2ca96a863754b9c1bda678).
* This patch merges cleanly.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72308202
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26456/
Test FAILed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/spark/pull/4296
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72566144
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26553/
Test FAILed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72591503
Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26587/
Test PASSed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72583876
[Test build #26587 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26587/consoleFull) for PR 4296 at commit [`6527b86`](https://github.com/apache/spark/commit/6527b8657d0415278101e352de4cd25d0631c597).
* This patch merges cleanly.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72308199
[Test build #26456 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26456/consoleFull) for PR 4296 at commit [`265fde7`](https://github.com/apache/spark/commit/265fde7a15e2a8492c2ca96a863754b9c1bda678).
* This patch **fails PySpark unit tests**.
* This patch merges cleanly.
* This patch adds the following public classes _(experimental)_:
* `trait Column extends DataFrame with ExpressionApi `
* `class ColumnName(name: String) extends IncomputableColumn(name) `
* `trait DataFrame extends DataFrameSpecificApi with RDDApi[Row] `
* `class GroupedDataFrame protected[sql](df: DataFrameImpl, groupingExprs: Seq[Expression])`
* ` protected[sql] class QueryExecution(val logical: LogicalPlan) `
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72566140
[Test build #26553 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/26553/consoleFull) for PR 4296 at commit [`5afe1ff`](https://github.com/apache/spark/commit/5afe1ffd761fa4cf7d8c59e3f7fa78e340d29f9d).
* This patch **fails PySpark unit tests**.
* This patch merges cleanly.
* This patch adds no public classes.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org
[GitHub] spark pull request: [SQL] Improve DataFrame API error reporting
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/4296#issuecomment-72582485
Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/26564/
Test FAILed.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org