You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by "Jacky Li (JIRA)" <ji...@apache.org> on 2018/11/07 01:57:00 UTC

[jira] [Resolved] (CARBONDATA-2996) readSchemaInIndexFile can't read schema by folder path

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

Jacky Li resolved CARBONDATA-2996.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.1

> readSchemaInIndexFile can't read schema by folder path
> ------------------------------------------------------
>
>                 Key: CARBONDATA-2996
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2996
>             Project: CarbonData
>          Issue Type: Bug
>    Affects Versions: 1.5.0
>            Reporter: xubo245
>            Assignee: xubo245
>            Priority: Major
>             Fix For: 1.5.1
>
>          Time Spent: 16h 10m
>  Remaining Estimate: 0h
>
> Test code:
> {code:java}
>  Schema schema = CarbonSchemaReader
>                 .readSchemaInIndexFile(path)
>                 .asOriginOrder();
>             // Transform the schema
>             String[] strings = new String[schema.getFields().length];
>             for (int i = 0; i < schema.getFields().length; i++) {
>                 strings[i] = (schema.getFields())[i].getFieldName();
>             }
> {code}
> Error:
> {code:java}
> java.io.IOException: Not an index file name
> Not an index file name
> 	at org.apache.carbondata.sdk.file.CarbonSchemaReader.readSchemaInIndexFile(CarbonSchemaReader.java:90)
> 	at org.apache.carbondata.examples.sdk.CarbonReaderExample.main(CarbonReaderExample.java:97)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)