[ 
https://issues.apache.org/jira/browse/ORC-688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shardul Mahadik updated ORC-688:
--------------------------------
    Description: 
E.g. For the evolution File type {{struct<x:char(10)>}} Reader type 
{{struct<x:string>}}
we currently get the following error
{code}
java.lang.IllegalArgumentException: No conversion of type STRING to self needed

        at 
org.apache.orc.impl.ConvertTreeReaderFactory.createStringConvertTreeReader(ConvertTreeReaderFactory.java:1954)
        at 
org.apache.orc.impl.ConvertTreeReaderFactory.createConvertTreeReader(ConvertTreeReaderFactory.java:2267)
        at 
org.apache.orc.impl.TreeReaderFactory.createTreeReader(TreeReaderFactory.java:2804)
        at 
org.apache.orc.impl.TreeReaderFactory$StructTreeReader.<init>(TreeReaderFactory.java:2420)
        at 
org.apache.orc.impl.TreeReaderFactory.createTreeReader(TreeReaderFactory.java:2844)
        at 
org.apache.orc.impl.TreeReaderFactory.createRootReader(TreeReaderFactory.java:2859)
{code}

Should we allow such an evolution?

  was:
E.g. For the evolution File type {{struct<x:char(10)>}} Reader type 
{{struct<x:string>}}
we currently get the following error
{code}

java.lang.IllegalArgumentException: No conversion of type STRING to self needed

        at 
org.apache.orc.impl.ConvertTreeReaderFactory.createStringConvertTreeReader(ConvertTreeReaderFactory.java:1954)
        at 
org.apache.orc.impl.ConvertTreeReaderFactory.createConvertTreeReader(ConvertTreeReaderFactory.java:2267)
        at 
org.apache.orc.impl.TreeReaderFactory.createTreeReader(TreeReaderFactory.java:2804)
        at 
org.apache.orc.impl.TreeReaderFactory$StructTreeReader.<init>(TreeReaderFactory.java:2420)
        at 
org.apache.orc.impl.TreeReaderFactory.createTreeReader(TreeReaderFactory.java:2844)
        at 
org.apache.orc.impl.TreeReaderFactory.createRootReader(TreeReaderFactory.java:2859)
{code}

Should we allow such an evolution?


> Allow CHAR, VARCHAR to be promoted to STRING
> --------------------------------------------
>
>                 Key: ORC-688
>                 URL: https://issues.apache.org/jira/browse/ORC-688
>             Project: ORC
>          Issue Type: Wish
>            Reporter: Shardul Mahadik
>            Priority: Major
>
> E.g. For the evolution File type {{struct<x:char(10)>}} Reader type 
> {{struct<x:string>}}
> we currently get the following error
> {code}
> java.lang.IllegalArgumentException: No conversion of type STRING to self 
> needed
>       at 
> org.apache.orc.impl.ConvertTreeReaderFactory.createStringConvertTreeReader(ConvertTreeReaderFactory.java:1954)
>       at 
> org.apache.orc.impl.ConvertTreeReaderFactory.createConvertTreeReader(ConvertTreeReaderFactory.java:2267)
>       at 
> org.apache.orc.impl.TreeReaderFactory.createTreeReader(TreeReaderFactory.java:2804)
>       at 
> org.apache.orc.impl.TreeReaderFactory$StructTreeReader.<init>(TreeReaderFactory.java:2420)
>       at 
> org.apache.orc.impl.TreeReaderFactory.createTreeReader(TreeReaderFactory.java:2844)
>       at 
> org.apache.orc.impl.TreeReaderFactory.createRootReader(TreeReaderFactory.java:2859)
> {code}
> Should we allow such an evolution?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to