Skip to content

Conversation

@marmbrus
Copy link
Contributor

No description provided.

@SparkQA
Copy link

SparkQA commented May 15, 2015

Test build #32759 has finished for PR 6165 at commit aad7eab.

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

Copy link
Contributor

Choose a reason for hiding this comment

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

If attributes.isEmpty, we'll always return Row.empty, so we don't need to create ColumnAccessors, right? The code looks weird to me, why we handle attributes.isEmpty this way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need at least one column so that we know how many rows to produce, but we should not include it in the output otherwise we will not match the schema we are claiming to have. It would be better to just remember the number of rows in a partition and use that instead. This is just a quick fix so we don't return the wrong answer.

Conflicts:
	sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala
@marmbrus
Copy link
Contributor Author

test this please

@SparkQA
Copy link

SparkQA commented May 21, 2015

Test build #33272 has finished for PR 6165 at commit 4fad158.

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

@marmbrus
Copy link
Contributor Author

test this please

@SparkQA
Copy link

SparkQA commented May 22, 2015

Test build #33290 has finished for PR 6165 at commit 4fad158.

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

@asfgit asfgit closed this in 3b68cb0 May 22, 2015
asfgit pushed a commit that referenced this pull request May 22, 2015
Author: Michael Armbrust <michael@databricks.com>

Closes #6165 from marmbrus/wrongColumn and squashes the following commits:

4fad158 [Michael Armbrust] Merge remote-tracking branch 'origin/master' into wrongColumn
aad7eab [Michael Armbrust] rxins comments
f1e8df1 [Michael Armbrust] [SPARK-6743][SQL] Fix empty projections of cached data

(cherry picked from commit 3b68cb0)
Signed-off-by: Michael Armbrust <michael@databricks.com>
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request May 28, 2015
Author: Michael Armbrust <michael@databricks.com>

Closes apache#6165 from marmbrus/wrongColumn and squashes the following commits:

4fad158 [Michael Armbrust] Merge remote-tracking branch 'origin/master' into wrongColumn
aad7eab [Michael Armbrust] rxins comments
f1e8df1 [Michael Armbrust] [SPARK-6743][SQL] Fix empty projections of cached data
jeanlyn pushed a commit to jeanlyn/spark that referenced this pull request Jun 12, 2015
Author: Michael Armbrust <michael@databricks.com>

Closes apache#6165 from marmbrus/wrongColumn and squashes the following commits:

4fad158 [Michael Armbrust] Merge remote-tracking branch 'origin/master' into wrongColumn
aad7eab [Michael Armbrust] rxins comments
f1e8df1 [Michael Armbrust] [SPARK-6743][SQL] Fix empty projections of cached data
nemccarthy pushed a commit to nemccarthy/spark that referenced this pull request Jun 19, 2015
Author: Michael Armbrust <michael@databricks.com>

Closes apache#6165 from marmbrus/wrongColumn and squashes the following commits:

4fad158 [Michael Armbrust] Merge remote-tracking branch 'origin/master' into wrongColumn
aad7eab [Michael Armbrust] rxins comments
f1e8df1 [Michael Armbrust] [SPARK-6743][SQL] Fix empty projections of cached data
@marmbrus marmbrus deleted the wrongColumn branch August 3, 2015 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants