java.lang.IllegalArgumentException: type of symbol 'expr_249' is expected to be varchar, but the actual type is varchar(3)

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

    Some queries with varchar(n) fail

    GitHub | 10 months ago | cberner
    java.lang.IllegalArgumentException: type of symbol 'expr_249' is expected to be varchar, but the actual type is varchar(3)
  2. 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]
  3. 0

    run presto with no connector exception

    GitHub | 2 years ago | aslldab1
    java.lang.IllegalArgumentException: No factory for connector mysql
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

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

    Why i can't build the project for eclipse?

    GitHub | 2 years ago | aslldab1
    java.lang.IllegalArgumentException: No factory for connector mysql
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

    type of symbol 'expr_249' is expected to be varchar, but the actual type is varchar(3)

    at com.google.common.base.Preconditions.checkArgument()
  2. Guava
    Preconditions.checkArgument
    1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)
    1 frame
  3. com.facebook.presto
    TypeValidator$Visitor.visitProject
    1. com.facebook.presto.sql.planner.sanity.TypeValidator$Visitor.verifyTypeSignature(TypeValidator.java:161)
    2. com.facebook.presto.sql.planner.sanity.TypeValidator$Visitor.visitProject(TypeValidator.java:116)
    3. com.facebook.presto.sql.planner.sanity.TypeValidator$Visitor.visitProject(TypeValidator.java:56)
    3 frames
  4. presto-main
    SimplePlanVisitor.visitPlan
    1. com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)
    2. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    2 frames
  5. com.facebook.presto
    TypeValidator$Visitor.visitProject
    1. com.facebook.presto.sql.planner.sanity.TypeValidator$Visitor.visitProject(TypeValidator.java:106)
    2. com.facebook.presto.sql.planner.sanity.TypeValidator$Visitor.visitProject(TypeValidator.java:56)
    2 frames
  6. presto-main
    SimplePlanVisitor.visitPlan
    1. com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)
    2. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    3. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:19)
    4. com.facebook.presto.sql.planner.plan.PlanVisitor.visitExchange(PlanVisitor.java:170)
    5. com.facebook.presto.sql.planner.plan.ExchangeNode.accept(ExchangeNode.java:208)
    6. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    7. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:19)
    8. com.facebook.presto.sql.planner.plan.PlanVisitor.visitJoin(PlanVisitor.java:90)
    9. com.facebook.presto.sql.planner.plan.JoinNode.accept(JoinNode.java:170)
    10. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    10 frames
  7. com.facebook.presto
    TypeValidator$Visitor.visitProject
    1. com.facebook.presto.sql.planner.sanity.TypeValidator$Visitor.visitProject(TypeValidator.java:106)
    2. com.facebook.presto.sql.planner.sanity.TypeValidator$Visitor.visitProject(TypeValidator.java:56)
    2 frames
  8. presto-main
    OutputNode.accept
    1. com.facebook.presto.sql.planner.plan.ProjectNode.accept(ProjectNode.java:81)
    2. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    3. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:19)
    4. com.facebook.presto.sql.planner.plan.PlanVisitor.visitExchange(PlanVisitor.java:170)
    5. com.facebook.presto.sql.planner.plan.ExchangeNode.accept(ExchangeNode.java:208)
    6. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    7. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:19)
    8. com.facebook.presto.sql.planner.plan.PlanVisitor.visitTableWriter(PlanVisitor.java:115)
    9. com.facebook.presto.sql.planner.plan.TableWriterNode.accept(TableWriterNode.java:127)
    10. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    11. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:19)
    12. com.facebook.presto.sql.planner.plan.PlanVisitor.visitExchange(PlanVisitor.java:170)
    13. com.facebook.presto.sql.planner.plan.ExchangeNode.accept(ExchangeNode.java:208)
    14. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    15. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:19)
    16. com.facebook.presto.sql.planner.plan.PlanVisitor.visitTableFinish(PlanVisitor.java:130)
    17. com.facebook.presto.sql.planner.plan.TableFinishNode.accept(TableFinishNode.java:80)
    18. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:26)
    19. com.facebook.presto.sql.planner.SimplePlanVisitor.visitPlan(SimplePlanVisitor.java:19)
    20. com.facebook.presto.sql.planner.plan.PlanVisitor.visitOutput(PlanVisitor.java:50)
    21. com.facebook.presto.sql.planner.plan.OutputNode.accept(OutputNode.java:81)
    21 frames
  9. com.facebook.presto
    PlanSanityChecker.lambda$validate$0
    1. com.facebook.presto.sql.planner.sanity.TypeValidator.validate(TypeValidator.java:53)
    2. com.facebook.presto.sql.planner.sanity.PlanSanityChecker.lambda$validate$0(PlanSanityChecker.java:42)
    2 frames
  10. Java RT
    Iterable.forEach
    1. java.lang.Iterable.forEach(Iterable.java:75)
    1 frame
  11. com.facebook.presto
    PlanSanityChecker.validate
    1. com.facebook.presto.sql.planner.sanity.PlanSanityChecker.validate(PlanSanityChecker.java:42)
    1 frame
  12. presto-main
    QueuedExecution.lambda$start$1
    1. com.facebook.presto.sql.planner.LogicalPlanner.plan(LogicalPlanner.java:109)
    2. com.facebook.presto.execution.SqlQueryExecution.doAnalyzeQuery(SqlQueryExecution.java:280)
    3. com.facebook.presto.execution.SqlQueryExecution.analyzeQuery(SqlQueryExecution.java:259)
    4. com.facebook.presto.execution.SqlQueryExecution.start(SqlQueryExecution.java:223)
    5. com.facebook.presto.execution.QueuedExecution.lambda$start$1(QueuedExecution.java:62)
    5 frames
  13. 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