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-13442][SQL] Make type inference recognize boolean types #11315

Closed
wants to merge 4 commits into from

Conversation

HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

https://issues.apache.org/jira/browse/SPARK-13442

This PR adds the support for inferring BooleanType for schema.
It supports to infer case-insensitive true / false as BooleanType.

Unittests were added for CSVInferSchemaSuite and CSVSuite for end-to-end test.

How was the this patch tested?

This was tested with unittests and with dev/run_tests for coding style

@SparkQA
Copy link

SparkQA commented Feb 23, 2016

Test build #51713 has finished for PR 11315 at commit 4ac73d9.

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

@HyukjinKwon
Copy link
Member Author

cc @falaki @yucheng1992 Would you review this please?

@yucheng1992
Copy link

@HyukjinKwon I think it's good. Thanks!

@HyukjinKwon
Copy link
Member Author

@rxin @falaki Would you take a look please?

@rxin
Copy link
Contributor

rxin commented Mar 2, 2016

LGTM pending tests

@SparkQA
Copy link

SparkQA commented Mar 2, 2016

Test build #52308 has finished for PR 11315 at commit b7fc39e.

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

@HyukjinKwon
Copy link
Member Author

cc @rxin

@rxin
Copy link
Contributor

rxin commented Mar 7, 2016

Thanks - merging in master.

@asfgit asfgit closed this in 8577260 Mar 7, 2016
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
## What changes were proposed in this pull request?

https://issues.apache.org/jira/browse/SPARK-13442

This PR adds the support for inferring `BooleanType` for schema.
It supports to infer case-insensitive `true` / `false` as `BooleanType`.

Unittests were added for `CSVInferSchemaSuite` and `CSVSuite` for end-to-end test.

## How was the this patch tested?

This was tested with unittests and with `dev/run_tests` for coding style

Author: hyukjinkwon <gurwls223@gmail.com>

Closes apache#11315 from HyukjinKwon/SPARK-13442.
@HyukjinKwon HyukjinKwon deleted the SPARK-13442 branch October 1, 2016 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants