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

Schema Compatibility problem between version 1.3.0 and 1.4.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0, 1.4.1
    • file-format
    • None

    Description

      The table schema created with 1.3 is not compatible with 1.4.0.

      Steps:

      Do the below operation  on hive meta store.

      1.  Create table and load data in 1.3 version.   

      spark.sql("create database carbonversion_1_1");
      spark.sql("use carbonversion_1_1");
      spark.sql("""create table testIntType (c1 string,c2 int) STORED BY 'org.apache.carbondata.format'""")
      spark.sql("insert into testIntType select 'a',200")

      2. Switch to 1.4 version and create data map on the table created in step 1.

      spark.sql("use carbonversion_1_3");
      spark.sql("create datamap dm8 on table testinttype3 using 'preaggregate' as select c1, sum(c2) from testinttype3 group by c1")
      

       Stack trace:

      Exception in thread "main" java.lang.NullPointerException
      at org.apache.carbondata.core.metadata.converter.ThriftWrapperSchemaConverterImpl.fromWrapperToExternalSchemaEvolution(ThriftWrapperSchemaConverterImpl.java:87)
      at org.apache.carbondata.core.metadata.converter.ThriftWrapperSchemaConverterImpl.fromWrapperToExternalTableSchema(ThriftWrapperSchemaConverterImpl.java:277)
      at org.apache.carbondata.core.metadata.converter.ThriftWrapperSchemaConverterImpl.fromWrapperToExternalTableInfo(ThriftWrapperSchemaConverterImpl.java:310)
      at org.apache.spark.sql.hive.CarbonHiveMetaStore.getThriftTableInfo(CarbonHiveMetaStore.scala:101)

      Attachments

        Issue Links

          Activity

            People

              mohdshahidkhan Mohammad Shahid Khan
              mohdshahidkhan Mohammad Shahid Khan
              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 - 1h 50m
                  1h 50m