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

Nested query Error: java.util.NoSuchElementException: key not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.1
    • None
    • spark-integration
    • None
    • Carbon1.3.1,Spark2.1.2

    Description

      create table carbon01(id int,label double,col1 double,col2 double) stored as 'carbondata';

      when i run sql: select c1,c2 from (select docid as c1, features as c2 from ( select monotonically_increasing_id() as docid, col1 as features from carbon01) as tab) as tab1;

      java.util.NoSuchElementException: key not found: docid#81L

        at scala.collection.MapLike$class.default(MapLike.scala:228)

        at org.apache.spark.sql.catalyst.expressions.AttributeSet.foreach(AttributeSet.scala:120)

        at org.apache.spark.sql.execution.strategy.CarbonLateDecodeStrategy.pruneFilterProjectRaw(CarbonLateDecodeStrategy.scala:233)

       at org.apache.spark.sql.execution.strategy.CarbonLateDecodeStrategy.pruneFilterProject(CarbonLateDecodeStrategy.scala:176)

        at org.apache.spark.sql.execution.strategy.CarbonLateDecodeStrategy.apply(CarbonLateDecodeStrategy.scala:60)

        at org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:62)

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            xhnqccf xhnqccf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: