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-8926][SQL] Good errors for ExpectsInputType expressions #7303

Closed
wants to merge 4 commits into from

Conversation

marmbrus
Copy link
Contributor

@marmbrus marmbrus commented Jul 8, 2015

For example: cannot resolve 'testfunction(null)' due to data type mismatch: argument 1 is expected to be of type int, however, null is of type datetype.

@SparkQA
Copy link

SparkQA commented Jul 8, 2015

Test build #36856 has finished for PR 7303 at commit 10fac82.

  • This patch fails Scala style tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Jul 9, 2015

Test build #36858 has finished for PR 7303 at commit 137160d.

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

@@ -77,6 +77,14 @@ class HiveTypeCoercionSuite extends PlanTest {
shouldCast(DecimalType(10, 2), TypeCollection(IntegerType, DecimalType), DecimalType(10, 2))
shouldCast(DecimalType(10, 2), TypeCollection(DecimalType, IntegerType), DecimalType(10, 2))
shouldCast(IntegerType, TypeCollection(DecimalType(10, 2), StringType), DecimalType(10, 2))

shouldCast(StringType, NumericType, DoubleType)
Copy link
Contributor

Choose a reason for hiding this comment

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

add a case for string -> double?

@SparkQA
Copy link

SparkQA commented Jul 9, 2015

Test build #36865 has finished for PR 7303 at commit c654a0e.

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

@rxin
Copy link
Contributor

rxin commented Jul 9, 2015

@marmbrus i'm going to merge this since I want to use the numeric adt in #6938

@asfgit asfgit closed this in 768907e Jul 9, 2015
asfgit pushed a commit that referenced this pull request Jul 9, 2015
I merged #7303 so it unblocks another PR. This addresses my own code review comment for that PR.

Author: Reynold Xin <rxin@databricks.com>

Closes #7313 from rxin/adt and squashes the following commits:

7ade82b [Reynold Xin] Fixed unit tests.
f8d5533 [Reynold Xin] [SPARK-8926][SQL] Code review followup.
@marmbrus marmbrus deleted the expectsTypeErrors branch August 3, 2015 22:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants