Open onlined opened 5 years ago
Stack trace:
#0 errstart (elevel=elevel@entry=20, filename=0xaaf220 "lsyscache.c", lineno=2057, funcname=0xaaf4e0 <__func__.23934> "get_typlenbyvalalign", domain=domain@entry=0x0)
at elog.c:251
#1 0x00000000008a90cf in elog_finish (elevel=elevel@entry=20, fmt=fmt@entry=0x8f5ae8 "cache lookup failed for type %u") at elog.c:1358
#2 0x0000000000890fe7 in get_typlenbyvalalign (typid=typid@entry=0, typlen=typlen@entry=0x7ffecce6575c, typbyval=typbyval@entry=0x7ffecce6575f,
typalign=typalign@entry=0x7ffecce6575e "") at lsyscache.c:2057
#3 0x00007f85c72078c1 in SplitPointObject (shardIntervalArray=0x0, shardIntervalCount=0) at planner/multi_physical_planner.c:1950
#4 0x00007f85c7209310 in MapTaskList (mapMergeJob=mapMergeJob@entry=0x220fe68, filterTaskList=filterTaskList@entry=0x219d558) at planner/multi_physical_planner.c:4224
#5 0x00007f85c7209ab2 in BuildJobTreeTaskList (jobTree=0x2218070, plannerRestrictionContext=plannerRestrictionContext@entry=0x21ee998) at planner/multi_physical_planner.c:2052
#6 0x00007f85c7209b17 in CreatePhysicalDistributedPlan (multiTree=multiTree@entry=0x220ff00, plannerRestrictionContext=plannerRestrictionContext@entry=0x21ee998)
at planner/multi_physical_planner.c:222
#7 0x00007f85c71f79bc in CreateDistributedPlan (planId=planId@entry=3, originalQuery=originalQuery@entry=0x2032110, query=query@entry=0x2032228,
boundParams=boundParams@entry=0x0, hasUnresolvedParams=hasUnresolvedParams@entry=false, plannerRestrictionContext=plannerRestrictionContext@entry=0x21ee998)
at planner/distributed_planner.c:786
#8 0x00007f85c71f7e6b in CreateDistributedPlannedStmt (planId=3, localPlan=localPlan@entry=0x2209f98, originalQuery=originalQuery@entry=0x2032110, query=query@entry=0x2032228,
boundParams=boundParams@entry=0x0, plannerRestrictionContext=plannerRestrictionContext@entry=0x21ee998) at planner/distributed_planner.c:515
#9 0x00007f85c71f81be in distributed_planner (parse=0x2032228, cursorOptions=256, boundParams=0x0) at planner/distributed_planner.c:189
#10 0x00000000006e162e in planner (parse=parse@entry=0x2032228, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at planner.c:261
#11 0x00000000007963da in pg_plan_query (querytree=querytree@entry=0x2032228, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at postgres.c:832
#12 0x00000000007964df in pg_plan_queries (querytrees=<optimized out>, cursorOptions=cursorOptions@entry=256, boundParams=boundParams@entry=0x0) at postgres.c:898
#13 0x00000000007967bb in exec_simple_query (query_string=query_string@entry=0x2030f68 "SELECT * FROM part, lineitem WHERE p_partkey = l_partkey;") at postgres.c:1073
#14 0x0000000000798571 in PostgresMain (argc=<optimized out>, argv=argv@entry=0x20a54f8, dbname=0x20a5390 "postgres", username=<optimized out>) at postgres.c:4182
#15 0x0000000000719dad in BackendRun (port=port@entry=0x2098da0) at postmaster.c:4358
#16 0x000000000071c9d2 in BackendStartup (port=port@entry=0x2098da0) at postmaster.c:4030
#17 0x000000000071cc7b in ServerLoop () at postmaster.c:1707
#18 0x000000000071df16 in PostmasterMain (argc=argc@entry=3, argv=argv@entry=0x202bb80) at postmaster.c:1380
#19 0x000000000068580f in main (argc=3, argv=0x202bb80) at main.c:228
It is trying to do re-partitioning, but it's failing for a table with no shards.
I have two workers, these tables and data:
lineitem.tbl
:When I run this query, I get the error: