java.lang.IllegalArgumentException: sum(bigint):bigint is not a scalar function

GitHub | cberner | 7 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

    Window functions cannot be used in some scalar expressions

    GitHub | 7 months ago | cberner
    java.lang.IllegalArgumentException: sum(bigint):bigint is not a scalar function
  2. 0

    Bad error message when window function is used in HAVING clause

    GitHub | 1 year ago | martint
    java.lang.IllegalArgumentException: count():bigint is not a scalar function
  3. 0

    Worker mismatch / single plan fragment when combining Singleton & UnionAll operators

    GitHub | 2 years ago | BrandonHaynes
    java.lang.IllegalArgumentException: Fragment 0 has a singleton operator 1, but workers [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 17, 16, 19, 18, 21, 20, 23, 22, 25, 24, 27, 26, 29, 28, 31, 30, 34, 35, 32, 33, 38, 39, 36, 37, 42, 43, 40, 41, 46, 47, 44, 45, 51, 50, 49, 48, 55, 54, 53, 52, 59, 58, 57, 56, 63, 62, 61, 60, 68, 69, 70, 71, 64, 65, 66, 67, 72]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    run presto with no connector exception

    GitHub | 2 years ago | aslldab1
    java.lang.IllegalArgumentException: No factory for connector mysql
  6. 0

    Array subscript operator fails for array[null][null]

    GitHub | 2 years ago | nezihyigitbasi
    java.lang.IllegalArgumentException: Expected one type, got {}

  1. Andreas Häber 1 times, last 1 day ago
  2. arturgajowy 2 times, last 2 days ago
  3. Handemelindo 1 times, last 4 months ago
  4. tfr 1 times, last 7 months ago
  5. brunosatriani 1 times, last 9 months ago
6 more registered users
10 unregistered visitors
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.lang.IllegalArgumentException

    sum(bigint):bigint is not a scalar function

    at com.google.common.base.Preconditions.checkArgument()
  2. Guava
    Preconditions.checkArgument
    1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
    1 frame
  3. presto-main
    ExpressionInterpreter$Visitor.visitFunctionCall
    1. com.facebook.presto.metadata.FunctionRegistry.getScalarFunctionImplementation(FunctionRegistry.java:805)
    2. com.facebook.presto.sql.planner.ExpressionInterpreter$Visitor.visitFunctionCall(ExpressionInterpreter.java:897)
    2 frames
  4. presto-parser
    AstVisitor.process
    1. com.facebook.presto.sql.tree.FunctionCall.accept(FunctionCall.java:96)
    2. com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:22)
    2 frames
  5. presto-main
    SimplifyExpressions$Rewriter.simplifyExpression
    1. com.facebook.presto.sql.planner.ExpressionInterpreter.optimize(ExpressionInterpreter.java:243)
    2. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.simplifyExpression(SimplifyExpressions.java:156)
    2 frames
  6. Guava
    ImmutableMap.copyOf
    1. com.google.common.collect.Maps$7.transformEntry(Maps.java:1812)
    2. com.google.common.collect.Maps$10.getValue(Maps.java:1857)
    3. com.google.common.collect.RegularImmutableMap.<init>(RegularImmutableMap.java:87)
    4. com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:294)
    4 frames
  7. presto-main
    SimplePlanRewriter$RewriteContext.lambda$defaultRewrite$0
    1. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:110)
    2. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:88)
    3. com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)
    4. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:85)
    5. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:96)
    6. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:109)
    7. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:88)
    8. com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)
    9. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:85)
    10. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:96)
    11. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:109)
    12. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:88)
    13. com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)
    14. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:85)
    15. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:96)
    16. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:109)
    17. com.facebook.presto.sql.planner.optimizations.SimplifyExpressions$Rewriter.visitProject(SimplifyExpressions.java:88)
    18. com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)
    19. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.rewrite(SimplePlanRewriter.java:85)
    20. com.facebook.presto.sql.planner.plan.SimplePlanRewriter$RewriteContext.lambda$defaultRewrite$0(SimplePlanRewriter.java:74)
    20 frames