com.facebook.presto.spi.PrestoException: / by zero

GitHub | electrum | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Pushdown incorrectly handles expressions that can fail

    GitHub | 8 months ago | electrum
    com.facebook.presto.spi.PrestoException: / by zero

    Root Cause Analysis

    1. java.lang.ArithmeticException

      / by zero

      at com.facebook.presto.type.BigintOperators.divide()
    2. presto-main
      BigintOperators.divide
      1. com.facebook.presto.type.BigintOperators.divide(BigintOperators.java:98)
      1 frame
    3. Unknown
      com_facebook_presto_$gen_PageProcessor_130.process
      1. com_facebook_presto_$gen_PageProcessor_130.filter(Unknown Source)
      2. com_facebook_presto_$gen_PageProcessor_130.process(Unknown Source)
      2 frames
    4. presto-main
      TaskExecutor$Runner.run
      1. com.facebook.presto.operator.ScanFilterAndProjectOperator.getOutput(ScanFilterAndProjectOperator.java:260)
      2. com.facebook.presto.operator.Driver.processInternal(Driver.java:378)
      3. com.facebook.presto.operator.Driver.processFor(Driver.java:301)
      4. com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:622)
      5. com.facebook.presto.execution.TaskExecutor$PrioritizedSplitRunner.process(TaskExecutor.java:529)
      6. com.facebook.presto.execution.TaskExecutor$Runner.run(TaskExecutor.java:665)
      6 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames