Skip to content

Conversation

@viirya
Copy link
Member

@viirya viirya commented Oct 25, 2017

What changes were proposed in this pull request?

We enable table cache InMemoryTableScanExec to provide ColumnarBatch now. But the cached batches are retrieved without pruning. In this case, we still need to do partition batch pruning.

How was this patch tested?

Existing tests.

@kiszk
Copy link
Member

kiszk commented Oct 25, 2017

Good catch, thank you. Would it be possible to add a test case for pruning with table cache?

@viirya
Copy link
Member Author

viirya commented Oct 25, 2017

@kiszk Thanks. I've roughly checked existing tests. Seems that there are no related ones for pruning the table cache. Let me see if I can add one.

// Using these variables here to avoid serialization of entire objects (if referenced directly)
// within the map Partitions closure.
val relOutput: AttributeSeq = relation.output
val buffers = filteredCachedBatches()
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems to be a leftover of copy-paste

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed. Thanks.

@viirya
Copy link
Member Author

viirya commented Oct 25, 2017

also cc @cloud-fan for review.

@SparkQA
Copy link

SparkQA commented Oct 25, 2017

Test build #83027 has finished for PR 19569 at commit f2c8266.

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

@cloud-fan
Copy link
Contributor

good catch! merging to master, thanks!

@asfgit asfgit closed this in bc1e766 Oct 25, 2017
@SparkQA
Copy link

SparkQA commented Oct 25, 2017

Test build #83031 has finished for PR 19569 at commit b9e238c.

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

@SparkQA
Copy link

SparkQA commented Oct 25, 2017

Test build #83032 has finished for PR 19569 at commit 568e791.

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

@viirya viirya deleted the SPARK-22348 branch December 27, 2023 18:21
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.

5 participants