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

Able to load dataframe with boolean type in a carbon table but with null values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.0.0-incubating
    • 1.1.0
    • spark-integration
    • None
    • spark 1.6,spark 2.1

    Description

      i created a dataframe with boolean type as follows

      case class People(name: String, occupation: String, consultant: Boolean)

      val people = List(People("sangeeta", "engineer", true), People("pallavi", "consultant", true))
      val peopleRDD: RDD[People] = cc.sc.parallelize(people)
      val peopleDF: DataFrame = peopleRDD.toDF("name", "occupation", "id")

      peopleDF.write
      .format("carbondata")
      .option("tableName", "carbon2")
      .option("compress", "true")
      .mode(SaveMode.Overwrite)
      .save()

      cc.sql("SELECT * FROM carbon2").show()

      currently boolean type is not supported in carbon data but table gets created

      but it shows me null values

      ------------------

      name occupation id

      ------------------

      pallavi consultant null
      sangeeta engineer null

      ------------------

      for boolean type it should throw unsupported type exception

      there is problem with carbondataframe writer

      Attachments

        Issue Links

          Activity

            People

              anubhavtarar anubhav tarar
              anubhavtarar anubhav tarar
              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 - 40m
                  40m