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-15983][SQL] Removes FileFormat.prepareRead #13698

Closed
wants to merge 1 commit into from

Conversation

liancheng
Copy link
Contributor

@liancheng liancheng commented Jun 16, 2016

What changes were proposed in this pull request?

Interface method FileFormat.prepareRead() was added in #12088 to handle a special case in the LibSVM data source.

However, the semantics of this interface method isn't intuitive: it returns a modified version of the data source options map. Considering that the LibSVM case can be easily handled using schema metadata inside inferSchema, we can remove this interface method to keep the FileFormat interface clean.

How was this patch tested?

Existing tests.

@liancheng
Copy link
Contributor Author

JIRA is down. Will create a ticket for it later.

cc @rxin @cloud-fan

@SparkQA
Copy link

SparkQA commented Jun 16, 2016

Test build #60618 has finished for PR 13698 at commit 6314635.

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

@cloud-fan
Copy link
Contributor

LGTM

@liancheng liancheng changed the title [SQL] Removes FileFormat.prepareRead [SPARK-15983][SQL] Removes FileFormat.prepareRead Jun 16, 2016
@SparkQA
Copy link

SparkQA commented Jun 16, 2016

Test build #60635 has finished for PR 13698 at commit eeb8d52.

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

@cloud-fan
Copy link
Contributor

thanks, merging to master/2.0!

asfgit pushed a commit that referenced this pull request Jun 16, 2016
## What changes were proposed in this pull request?

Interface method `FileFormat.prepareRead()` was added in #12088 to handle a special case in the LibSVM data source.

However, the semantics of this interface method isn't intuitive: it returns a modified version of the data source options map. Considering that the LibSVM case can be easily handled using schema metadata inside `inferSchema`, we can remove this interface method to keep the `FileFormat` interface clean.

## How was this patch tested?

Existing tests.

Author: Cheng Lian <lian@databricks.com>

Closes #13698 from liancheng/remove-prepare-read.

(cherry picked from commit 9ea0d5e)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
@asfgit asfgit closed this in 9ea0d5e Jun 16, 2016
@liancheng liancheng deleted the remove-prepare-read branch June 18, 2016 04:59
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