You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "Ryan Blue (JIRA)" <ji...@apache.org> on 2014/11/21 20:54:33 UTC
[jira] [Updated] (PARQUET-138) Parquet should allow a merge between
required and optional schemas
[ https://issues.apache.org/jira/browse/PARQUET-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Blue updated PARQUET-138:
------------------------------
Description:
In discussion with Ryan, he felt we should be able to merge from required binary to optional binary and the resulting schema would be optional
https://github.com/Parquet/parquet-mr/blob/master/parquet-column/src/test/java/parquet/schema/TestMessageType.java
{code:java}
try {
t3.union(t4);
fail("moving from optional to required");
} catch (IncompatibleSchemaModificationException e) {
assertEquals("repetition constraint is more restrictive: can not merge type required binary a into optional binary a", e.getMessage());
}
{code}
was:
In discussion with Ryan, he felt we should be able to merge from required binary to optional binary and the resulting schema would be optional
https://github.com/Parquet/parquet-mr/blob/master/parquet-column/src/test/java/parquet/schema/TestMessageType.java
try {
t3.union(t4);
fail("moving from optional to required");
} catch (IncompatibleSchemaModificationException e) {
assertEquals("repetition constraint is more restrictive: can not merge type required binary a into optional binary a", e.getMessage());
}
> Parquet should allow a merge between required and optional schemas
> ------------------------------------------------------------------
>
> Key: PARQUET-138
> URL: https://issues.apache.org/jira/browse/PARQUET-138
> Project: Parquet
> Issue Type: Bug
> Components: parquet-mr
> Affects Versions: parquet-mr_1.6.0
> Reporter: Robert Justice
>
> In discussion with Ryan, he felt we should be able to merge from required binary to optional binary and the resulting schema would be optional
> https://github.com/Parquet/parquet-mr/blob/master/parquet-column/src/test/java/parquet/schema/TestMessageType.java
> {code:java}
> try {
> t3.union(t4);
> fail("moving from optional to required");
> } catch (IncompatibleSchemaModificationException e) {
> assertEquals("repetition constraint is more restrictive: can not merge type required binary a into optional binary a", e.getMessage());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)