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

The getOrCreateCarbonSession method 'storePath' parameter only checks for null,Causes the data store path to be an empty string and no exception is reported.Results in no results for the final select data

    XMLWordPrintableJSON

Details

    • Important

    Description

      val carbon = SparkSession.builder().config(sc.getConf).getOrCreateCarbonSession("");

      if (storePath != null)

      { carbonProperties.addProperty(CarbonCommonConstants.STORE_LOCATION, storePath) // In case if it is in carbon.properties for backward compatible }

      else if (carbonProperties.getProperty(CarbonCommonConstants.STORE_LOCATION) == null)

      { carbonProperties.addProperty(CarbonCommonConstants.STORE_LOCATION, session.sessionState.conf.warehousePath) }

      explain:

      The getOrCreateCarbonSession method storePath parameter only checks for null,Causes the data store path to be an empty string and no exception is reported.Results in no results for the final select data.

      Please see the attachment for examples

      Attachments

        1. carbondata-error.doc
          88 kB
          张源

        Issue Links

          Activity

            People

              war 张源
              war 张源
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 12h Original Estimate - 12h
                  12h
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 14h 40m
                  14h 40m