Repository navigation
Conversation
|
Can one of the admins verify this patch? |
|
These tests shouldn't be using scala NotNull, but catalyst's .notNull. |
Hmm, now that I look more carefully what you say makes sense. Trying to |
|
Mind closing this PR if its not an issue then? Thanks! |
The description of the cause (scala.NotNull trait removal in 2.11) might be |
|
Ah, thanks for the clarification. |
|
This is the exact failure. The error is actually missing at() method [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:370: |
|
It is possibly a change with type inference / implicit conversions? |
Likely. What is the expected type which is supposed to have 'def at()', |
|
|
|
So, it looks like with: a.withNullability (in type inference is selecting the type Attribute at instead of AttributeReference at Do you have a preference on how to make the code less ambiguous? On Fri, Aug 1, 2014 at 11:41 AM, Michael Armbrust notifications@github.com
|
|
I haven't looked closely but if we can make it work by specifying more generic explicit return types to our implicits that seems like a good approach. |
|
Yeah, I was thinking: |
For Scala 2.11 compatibility. Without the explicit type specification, withNullability return type is inferred to be Attribute, and thus calling at() on the returned object fails in these tests: [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:370: value at is not a member of org.apache.spark.sql.catalyst.expressions.Attribute [ERROR] val c4_notNull = 'a.boolean.notNull.at(3) [ERROR] ^ [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:371: value at is not a member of org.apache.spark.sql.catalyst.expressions.Attribute [ERROR] val c5_notNull = 'a.boolean.notNull.at(4) [ERROR] ^ [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:372: value at is not a member of org.apache.spark.sql.catalyst.expressions.Attribute [ERROR] val c6_notNull = 'a.boolean.notNull.at(5) [ERROR] ^ [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:558: value at is not a member of org.apache.spark.sql.catalyst.expressions.Attribute [ERROR] val s_notNull = 'a.string.notNull.at(0) Signed-off-by: Anand Avati <avati@redhat.com>
|
@marmbrus - this latest patch fixes the Scala 2.11 compilation breakage |
|
test this please |
|
QA tests have started for PR 1709. This patch merges cleanly. |
|
QA results for PR 1709: |
|
The failures seem to be odd and unrelated to the patch itself. |
|
test this please |
|
QA tests have started for PR 1709. This patch merges cleanly. |
|
QA results for PR 1709: |
For Scala 2.11 compatibility. Without the explicit type specification, withNullability return type is inferred to be Attribute, and thus calling at() on the returned object fails in these tests: [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:370: value at is not a [ERROR] val c4_notNull = 'a.boolean.notNull.at(3) [ERROR] ^ [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:371: value at is not a [ERROR] val c5_notNull = 'a.boolean.notNull.at(4) [ERROR] ^ [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:372: value at is not a [ERROR] val c6_notNull = 'a.boolean.notNull.at(5) [ERROR] ^ [ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:558: value at is not a [ERROR] val s_notNull = 'a.string.notNull.at(0) Signed-off-by: Anand Avati <avatiredhat.com> Author: Anand Avati <avati@redhat.com> Closes apache#1709 from avati/SPARK-1812-notnull and squashes the following commits: 0470eb3 [Anand Avati] SPARK-1812: sql/catalyst - Provide explicit type information
…apache#1709) * [VARKA] Plan: correct rows 103, 351 and 414 for merged upstream fixes Three plan records describe Spark as it was before upstream fixes that are merged now. SPARK-60743 (on master since apache#1482) ended the int narrowing of the six-field make_timestamp_ntz's seconds that VARKA-351 planned to copy, and answered its upstream-filing flag. SPARK-60746 (since apache#1427) made the two error classes of dt / -1 one, which VARKA-103 still described. SPARK-61352 merged upstream on 24 November 2026: VARKA-414 gave its pull request's old title and a copyTagsFrom rule that runs the other way from the merged one, as upstream's tests show, and named two of the three declines left to lift. Row 351's PLAN.md line is left alone, since apache#1707 edits the adjacent row 350. Generated-by: Claude Code (Claude Opus 5.5) * [VARKA] Plan: fix the review findings on the upstream-fix corrections Row 351's PLAN.md line now carries its own correction, as the change that produces it should, and VARKA-351's open point about leaving it is dropped. VARKA-351 2.6 states that the bad-field mask takes precedence over the micros sum's FAIL, since without the narrowing a bad lane's seconds can make the sum overflow where Spark rejects the fields first, and names the test for it; the TRY form's NULL now cites the golden files that show it. The debt register entry and row 414 record what SPARK-61352's merge leaves to close. VARKA-103 says the first of item 8's facts was refuted rather than settled, cites IntervalMathUtils.divide's current overloads and marks its older line citations as pre-SPARK-60746. VARKA-414 gives SPARK-61352's branch-4.x and release-branch commits. Generated-by: Claude Code (Claude Opus 5.5) --------- Co-authored-by: t <t@example.com>
For Scala 2.11 compatibility.
Without the explicit type specification, withNullability
return type is inferred to be Attribute, and thus calling
at() on the returned object fails in these tests:
[ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:370: value at is not a
[ERROR] val c4_notNull = 'a.boolean.notNull.at(3)
[ERROR] ^
[ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:371: value at is not a
[ERROR] val c5_notNull = 'a.boolean.notNull.at(4)
[ERROR] ^
[ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:372: value at is not a
[ERROR] val c6_notNull = 'a.boolean.notNull.at(5)
[ERROR] ^
[ERROR] /Users/avati/work/spark/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/ExpressionEvaluationSuite.scala:558: value at is not a
[ERROR] val s_notNull = 'a.string.notNull.at(0)
Signed-off-by: Anand Avati avati@redhat.com