java.util.NoSuchElementException: key not found: table

DataStax JIRA | Piotr Kołaczkowski | 1 year ago
  1. 0

    {noformat} [info] - should allow to select UDT collection column and nested UDT column *** FAILED *** (429 milliseconds) [info] java.util.NoSuchElementException: key not found: table [info] at scala.collection.MapLike$class.default(MapLike.scala:228) [info] at org.apache.spark.sql.sources.CaseInsensitiveMap.default(ddl.scala:463) [info] at scala.collection.MapLike$class.apply(MapLike.scala:141) [info] at org.apache.spark.sql.sources.CaseInsensitiveMap.apply(ddl.scala:463) [info] at org.apache.spark.sql.cassandra.DefaultSource$.TableRefAndOptions(DefaultSource.scala:120) [info] at org.apache.spark.sql.cassandra.DefaultSource.createRelation(DefaultSource.scala:56) [info] at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:265) [info] at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:114) [info] at org.apache.spark.sql.SQLContext.load(SQLContext.scala:1242) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply$mcV$sp(CassandraSQLSpec.scala:350) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297) [info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) [info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [info] at org.scalatest.Transformer.apply(Transformer.scala:22) [info] at org.scalatest.Transformer.apply(Transformer.scala:20) [info] at org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1647) [info] at org.scalatest.Suite$class.withFixture(Suite.scala:1122) [info] at org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1683) [info] at org.scalatest.FlatSpecLike$class.invokeWithFixture$1(FlatSpecLike.scala:1644) [info] at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656) [info] at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656) [info] at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306) [info] at org.scalatest.FlatSpecLike$class.runTest(FlatSpecLike.scala:1656) [info] at org.scalatest.FlatSpec.runTest(FlatSpec.scala:1683) [info] at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714) [info] at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714) [info] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413) [info] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401) [info] at scala.collection.immutable.List.foreach(List.scala:318) [info] at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401) [info] at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396) [info] at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483) [info] at org.scalatest.FlatSpecLike$class.runTests(FlatSpecLike.scala:1714) [info] at org.scalatest.FlatSpec.runTests(FlatSpec.scala:1683) [info] at org.scalatest.Suite$class.run(Suite.scala:1424) [info] at org.scalatest.FlatSpec.org$scalatest$FlatSpecLike$$super$run(FlatSpec.scala:1683) [info] at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760) [info] at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760) [info] at org.scalatest.SuperEngine.runImpl(Engine.scala:545) [info] at org.scalatest.FlatSpecLike$class.run(FlatSpecLike.scala:1760) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec.org$scalatest$BeforeAndAfterAll$$super$run(CassandraSQLSpec.scala:11) [info] at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257) [info] at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec.run(CassandraSQLSpec.scala:11) [info] at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:466) [info] at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:677) [info] at sbt.ForkMain$Run$2.call(ForkMain.java:294) [info] at sbt.ForkMain$Run$2.call(ForkMain.java:284) [info] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [info] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [info] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [info] at java.lang.Thread.run(Thread.java:745) {noformat}

    DataStax JIRA | 1 year ago | Piotr Kołaczkowski
    java.util.NoSuchElementException: key not found: table
  2. 0

    {noformat} [info] - should allow to select UDT collection column and nested UDT column *** FAILED *** (429 milliseconds) [info] java.util.NoSuchElementException: key not found: table [info] at scala.collection.MapLike$class.default(MapLike.scala:228) [info] at org.apache.spark.sql.sources.CaseInsensitiveMap.default(ddl.scala:463) [info] at scala.collection.MapLike$class.apply(MapLike.scala:141) [info] at org.apache.spark.sql.sources.CaseInsensitiveMap.apply(ddl.scala:463) [info] at org.apache.spark.sql.cassandra.DefaultSource$.TableRefAndOptions(DefaultSource.scala:120) [info] at org.apache.spark.sql.cassandra.DefaultSource.createRelation(DefaultSource.scala:56) [info] at org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:265) [info] at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:114) [info] at org.apache.spark.sql.SQLContext.load(SQLContext.scala:1242) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply$mcV$sp(CassandraSQLSpec.scala:350) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297) [info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) [info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [info] at org.scalatest.Transformer.apply(Transformer.scala:22) [info] at org.scalatest.Transformer.apply(Transformer.scala:20) [info] at org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1647) [info] at org.scalatest.Suite$class.withFixture(Suite.scala:1122) [info] at org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1683) [info] at org.scalatest.FlatSpecLike$class.invokeWithFixture$1(FlatSpecLike.scala:1644) [info] at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656) [info] at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656) [info] at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306) [info] at org.scalatest.FlatSpecLike$class.runTest(FlatSpecLike.scala:1656) [info] at org.scalatest.FlatSpec.runTest(FlatSpec.scala:1683) [info] at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714) [info] at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714) [info] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413) [info] at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401) [info] at scala.collection.immutable.List.foreach(List.scala:318) [info] at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401) [info] at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396) [info] at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483) [info] at org.scalatest.FlatSpecLike$class.runTests(FlatSpecLike.scala:1714) [info] at org.scalatest.FlatSpec.runTests(FlatSpec.scala:1683) [info] at org.scalatest.Suite$class.run(Suite.scala:1424) [info] at org.scalatest.FlatSpec.org$scalatest$FlatSpecLike$$super$run(FlatSpec.scala:1683) [info] at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760) [info] at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760) [info] at org.scalatest.SuperEngine.runImpl(Engine.scala:545) [info] at org.scalatest.FlatSpecLike$class.run(FlatSpecLike.scala:1760) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec.org$scalatest$BeforeAndAfterAll$$super$run(CassandraSQLSpec.scala:11) [info] at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257) [info] at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256) [info] at com.datastax.spark.connector.sql.CassandraSQLSpec.run(CassandraSQLSpec.scala:11) [info] at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:466) [info] at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:677) [info] at sbt.ForkMain$Run$2.call(ForkMain.java:294) [info] at sbt.ForkMain$Run$2.call(ForkMain.java:284) [info] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [info] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [info] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [info] at java.lang.Thread.run(Thread.java:745) {noformat}

    DataStax JIRA | 1 year ago | Piotr Kołaczkowski
    java.util.NoSuchElementException: key not found: table
  3. 0

    How read json/csv file in SparkR?

    Stack Overflow | 1 year ago | Vijay_Shinde
    java.lang.reflect.InvocationTargetException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connecting Spark to HAWQ via JDBC driver

    Stack Overflow | 1 year ago | WaveRider
    java.util.NoSuchElementException: key not found: path
  6. 0

    connect to Apache Cassandra

    GitHub | 3 months ago | ChingChuan-Chen
    java.util.NoSuchElementException: key not found: table
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.NoSuchElementException

    key not found: table

    at scala.collection.MapLike$class.default()
  2. Scala
    MapLike$class.default
    1. scala.collection.MapLike$class.default(MapLike.scala:228)
    1 frame
  3. Spark Project SQL
    CaseInsensitiveMap.default
    1. org.apache.spark.sql.sources.CaseInsensitiveMap.default(ddl.scala:463)
    1 frame
  4. Scala
    MapLike$class.apply
    1. scala.collection.MapLike$class.apply(MapLike.scala:141)
    1 frame
  5. Spark Project SQL
    CaseInsensitiveMap.apply
    1. org.apache.spark.sql.sources.CaseInsensitiveMap.apply(ddl.scala:463)
    1 frame
  6. spark-cassandra-connector
    DefaultSource.createRelation
    1. org.apache.spark.sql.cassandra.DefaultSource$.TableRefAndOptions(DefaultSource.scala:120)
    2. org.apache.spark.sql.cassandra.DefaultSource.createRelation(DefaultSource.scala:56)
    2 frames
  7. Spark Project SQL
    SQLContext.load
    1. org.apache.spark.sql.sources.ResolvedDataSource$.apply(ddl.scala:265)
    2. org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:114)
    3. org.apache.spark.sql.SQLContext.load(SQLContext.scala:1242)
    3 frames
  8. com.datastax.spark
    CassandraSQLSpec$$anonfun$41.apply
    1. com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply$mcV$sp(CassandraSQLSpec.scala:350)
    2. com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297)
    3. com.datastax.spark.connector.sql.CassandraSQLSpec$$anonfun$41.apply(CassandraSQLSpec.scala:297)
    3 frames
  9. scalatest
    SuperEngine$$anonfun$traverseSubNodes$1$1.apply
    1. org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
    2. org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
    3. org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
    4. org.scalatest.Transformer.apply(Transformer.scala:22)
    5. org.scalatest.Transformer.apply(Transformer.scala:20)
    6. org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1647)
    7. org.scalatest.Suite$class.withFixture(Suite.scala:1122)
    8. org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1683)
    9. org.scalatest.FlatSpecLike$class.invokeWithFixture$1(FlatSpecLike.scala:1644)
    10. org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)
    11. org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)
    12. org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
    13. org.scalatest.FlatSpecLike$class.runTest(FlatSpecLike.scala:1656)
    14. org.scalatest.FlatSpec.runTest(FlatSpec.scala:1683)
    15. org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714)
    16. org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714)
    17. org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
    18. org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
    18 frames
  10. Scala
    List.foreach
    1. scala.collection.immutable.List.foreach(List.scala:318)
    1 frame
  11. scalatest
    FlatSpecLike$class.run
    1. org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
    2. org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
    3. org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
    4. org.scalatest.FlatSpecLike$class.runTests(FlatSpecLike.scala:1714)
    5. org.scalatest.FlatSpec.runTests(FlatSpec.scala:1683)
    6. org.scalatest.Suite$class.run(Suite.scala:1424)
    7. org.scalatest.FlatSpec.org$scalatest$FlatSpecLike$$super$run(FlatSpec.scala:1683)
    8. org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760)
    9. org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760)
    10. org.scalatest.SuperEngine.runImpl(Engine.scala:545)
    11. org.scalatest.FlatSpecLike$class.run(FlatSpecLike.scala:1760)
    11 frames
  12. com.datastax.spark
    CassandraSQLSpec.org$scalatest$BeforeAndAfterAll$$super$run
    1. com.datastax.spark.connector.sql.CassandraSQLSpec.org$scalatest$BeforeAndAfterAll$$super$run(CassandraSQLSpec.scala:11)
    1 frame
  13. scalatest
    BeforeAndAfterAll$class.run
    1. org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
    2. org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
    2 frames
  14. com.datastax.spark
    CassandraSQLSpec.run
    1. com.datastax.spark.connector.sql.CassandraSQLSpec.run(CassandraSQLSpec.scala:11)
    1 frame
  15. scalatest
    Framework$ScalaTestTask.execute
    1. org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:466)
    2. org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:677)
    2 frames
  16. SBT
    ForkMain$Run$2.call
    1. sbt.ForkMain$Run$2.call(ForkMain.java:294)
    2. sbt.ForkMain$Run$2.call(ForkMain.java:284)
    2 frames
  17. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
    2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    4. java.lang.Thread.run(Thread.java:745)
    4 frames