Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-2996

readSchemaInIndexFile can't read schema by folder path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.0
    • 1.5.1
    • None
    • None

    Description

      Test code:

       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();
                  }
      

      Error:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              xubo245 Bo Xu
              xubo245 Bo Xu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 16h 10m
                  16h 10m