Skip to content

Conversation

@HyukjinKwon
Copy link
Member

Parquet supports some unsigned datatypes. However, Since Spark does not support unsigned datatypes, it needs to emit an exception with a clear message rather then with the one saying illegal datatype.

@SparkQA
Copy link

SparkQA commented Nov 12, 2015

Test build #45693 has finished for PR 9646 at commit 2752c14.

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

@HyukjinKwon
Copy link
Member Author

cc @liancheng

@liancheng
Copy link
Contributor

Would you please rename the PR title to "Explicit error message for unsigned Parquet logical types"? Since this PR doesn't introduce "support" for unsigned types.

Otherwise LGTM. Thanks!

@HyukjinKwon HyukjinKwon changed the title [SPARK-10113][SQL] Support for unsigned Parquet logical types [SPARK-10113][SQL] Explicit error message for unsigned Parquet logical types Nov 12, 2015
@marmbrus
Copy link
Contributor

This seems fine for now, but its not clear to me why the right answer isn't to read it in as a higher precision signed type.

@marmbrus
Copy link
Contributor

Merging to master and 1.6

asfgit pushed a commit that referenced this pull request Nov 12, 2015
…l types

Parquet supports some unsigned datatypes. However, Since Spark does not support unsigned datatypes, it needs to emit an exception with a clear message rather then with the one saying illegal datatype.

Author: hyukjinkwon <[email protected]>

Closes #9646 from HyukjinKwon/SPARK-10113.

(cherry picked from commit f5a9526)
Signed-off-by: Michael Armbrust <[email protected]>
@asfgit asfgit closed this in f5a9526 Nov 12, 2015
@liancheng
Copy link
Contributor

@marmbrus That's also an option, but seems somewhat confusing to me. Especially, in this way UINT_64 has to be mapped to a fractional type. Besides, I just checked and realized that none of those built-in data models in parquet-mr implements any of these unsigned logical types.

dskrvk pushed a commit to dskrvk/spark that referenced this pull request Nov 13, 2015
…l types

Parquet supports some unsigned datatypes. However, Since Spark does not support unsigned datatypes, it needs to emit an exception with a clear message rather then with the one saying illegal datatype.

Author: hyukjinkwon <[email protected]>

Closes apache#9646 from HyukjinKwon/SPARK-10113.
@HyukjinKwon HyukjinKwon deleted the SPARK-10113 branch September 23, 2016 18:28
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.

4 participants