java.lang.ArithmeticException: / by zero

GitHub | redlion99 | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 51#241625711

    GitHub | 9 months ago | redlion99
    java.lang.ArithmeticException: / by zero

    Root Cause Analysis

    1. java.lang.ArithmeticException

      / by zero

      at org.apache.spark.sql.sources.druid.DruidQueryCostModel$.computeMethod()
    2. org.apache.spark
      DruidStrategy$$anonfun$1$$anonfun$apply$2.apply
      1. org.apache.spark.sql.sources.druid.DruidQueryCostModel$.computeMethod(DruidQueryCostModel.scala:528)
      2. org.apache.spark.sql.sources.druid.DruidQueryCostModel$.computeMethod(DruidQueryCostModel.scala:596)
      3. org.apache.spark.sql.sources.druid.DruidStrategy$$anonfun$1$$anonfun$apply$2.apply(DruidStrategy.scala:71)
      4. org.apache.spark.sql.sources.druid.DruidStrategy$$anonfun$1$$anonfun$apply$2.apply(DruidStrategy.scala:37)
      4 frames
    3. Scala
      Option.map
      1. scala.Option.map(Option.scala:145)
      1 frame
    4. org.apache.spark
      DruidStrategy$$anonfun$1.apply
      1. org.apache.spark.sql.sources.druid.DruidStrategy$$anonfun$1.apply(DruidStrategy.scala:37)
      2. org.apache.spark.sql.sources.druid.DruidStrategy$$anonfun$1.apply(DruidStrategy.scala:36)
      2 frames
    5. Scala
      SeqViewLike$AbstractTransformed.toList
      1. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:90)
      2. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:89)
      3. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3$$anonfun$apply$1.apply(GenTraversableViewLike.scala:91)
      4. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3$$anonfun$apply$1.apply(GenTraversableViewLike.scala:91)
      5. scala.collection.immutable.List.foreach(List.scala:318)
      6. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:90)
      7. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:89)
      8. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3$$anonfun$apply$1.apply(GenTraversableViewLike.scala:91)
      9. scala.collection.immutable.List.foreach(List.scala:318)
      10. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:90)
      11. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:89)
      12. scala.collection.Iterator$class.foreach(Iterator.scala:727)
      13. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      14. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      15. scala.collection.SeqLike$$anon$2.foreach(SeqLike.scala:635)
      16. scala.collection.GenTraversableViewLike$FlatMapped$class.foreach(GenTraversableViewLike.scala:89)
      17. scala.collection.SeqViewLike$$anon$4.foreach(SeqViewLike.scala:79)
      18. scala.collection.GenTraversableViewLike$FlatMapped$class.foreach(GenTraversableViewLike.scala:89)
      19. scala.collection.SeqViewLike$$anon$4.foreach(SeqViewLike.scala:79)
      20. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:90)
      21. scala.collection.GenTraversableViewLike$FlatMapped$$anonfun$foreach$3.apply(GenTraversableViewLike.scala:89)
      22. scala.collection.Iterator$class.foreach(Iterator.scala:727)
      23. scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
      24. scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
      25. scala.collection.SeqLike$$anon$2.foreach(SeqLike.scala:635)
      26. scala.collection.GenTraversableViewLike$FlatMapped$class.foreach(GenTraversableViewLike.scala:89)
      27. scala.collection.SeqViewLike$$anon$4.foreach(SeqViewLike.scala:79)
      28. scala.collection.GenTraversableViewLike$FlatMapped$class.foreach(GenTraversableViewLike.scala:89)
      29. scala.collection.SeqViewLike$$anon$4.foreach(SeqViewLike.scala:79)
      30. scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
      31. scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:176)
      32. scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:45)
      33. scala.collection.TraversableLike$class.to(TraversableLike.scala:629)
      34. scala.collection.SeqViewLike$AbstractTransformed.to(SeqViewLike.scala:43)
      35. scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:257)
      36. scala.collection.SeqViewLike$AbstractTransformed.toList(SeqViewLike.scala:43)
      36 frames
    6. org.apache.spark
      DruidStrategy.apply
      1. org.apache.spark.sql.sources.druid.DruidStrategy.apply(DruidStrategy.scala:119)
      1 frame
    7. Spark Project Catalyst
      QueryPlanner$$anonfun$1.apply
      1. org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:58)
      2. org.apache.spark.sql.catalyst.planning.QueryPlanner$$anonfun$1.apply(QueryPlanner.scala:58)
      2 frames
    8. Scala
      Iterator$$anon$13.hasNext
      1. scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:371)
      1 frame
    9. Spark Project Catalyst
      QueryPlanner.plan
      1. org.apache.spark.sql.catalyst.planning.QueryPlanner.plan(QueryPlanner.scala:59)
      1 frame
    10. Spark Project SQL
      DataFrame.collect
      1. org.apache.spark.sql.execution.QueryExecution.sparkPlan$lzycompute(QueryExecution.scala:47)
      2. org.apache.spark.sql.execution.QueryExecution.sparkPlan(QueryExecution.scala:45)
      3. org.apache.spark.sql.execution.QueryExecution.executedPlan$lzycompute(QueryExecution.scala:52)
      4. org.apache.spark.sql.execution.QueryExecution.executedPlan(QueryExecution.scala:52)
      5. org.apache.spark.sql.DataFrame.withCallback(DataFrame.scala:2134)
      6. org.apache.spark.sql.DataFrame.org$apache$spark$sql$DataFrame$$collect(DataFrame.scala:1542)
      7. org.apache.spark.sql.DataFrame.collect(DataFrame.scala:1519)
      7 frames
    11. org.apache.spark
      SparkExecuteStatementOperation$$anon$1$$anon$2.run
      1. org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation.org$apache$spark$sql$hive$thriftserver$SparkExecuteStatementOperation$$execute(SparkExecuteStatementOperation.scala:226)
      2. org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation$$anon$1$$anon$2.run(SparkExecuteStatementOperation.scala:154)
      3. org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation$$anon$1$$anon$2.run(SparkExecuteStatementOperation.scala:151)
      3 frames
    12. Java RT
      Subject.doAs
      1. java.security.AccessController.doPrivileged(Native Method)
      2. javax.security.auth.Subject.doAs(Subject.java:422)
      2 frames
    13. Hadoop
      UserGroupInformation.doAs
      1. org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)
      1 frame
    14. org.apache.spark
      SparkExecuteStatementOperation$$anon$1.run
      1. org.apache.spark.sql.hive.thriftserver.SparkExecuteStatementOperation$$anon$1.run(SparkExecuteStatementOperation.scala:164)
      1 frame
    15. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames