这个错误一般是指要插入的数据,发现分区键不在现有的partition范围内。理论上插入没有报错的话,select时候不该报错的。(查询语句是一个多表join的大SQL,涉及到3个分区表,还不清楚是哪个分区表导致的。。)
[table:1526]Table has no partition for value from column_list
github.com/pingcap/errors.AddStack
/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/errors.go:174
github.com/pingcap/errors.(*Error).GenWithStackByArgs
/go/pkg/mod/github.com/pingcap/errors@v0.11.5-0.20211224045212-9687c2b0f87c/normalize.go:164
github.com/pingcap/tidb/table/tables.(*partitionedTable).locateRangeColumnPartition
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/partition.go:1029
github.com/pingcap/tidb/table/tables.(*partitionedTable).locatePartition
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/partition.go:976
github.com/pingcap/tidb/table/tables.(*partitionedTable).GetPartitionByRow
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/table/tables/partition.go:1147
github.com/pingcap/tidb/executor.(*dataReaderBuilder).buildTableReaderForIndexJoin
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/builder.go:4025
github.com/pingcap/tidb/executor.(*dataReaderBuilder).buildExecutorForIndexJoinInternal
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/builder.go:3924
github.com/pingcap/tidb/executor.(*dataReaderBuilder).buildExecutorForIndexJoin
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/builder.go:3917
github.com/pingcap/tidb/executor.(*innerWorker).fetchInnerResults
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_lookup_join.go:685
github.com/pingcap/tidb/executor.(*innerWorker).handleTask
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_lookup_join.go:524
github.com/pingcap/tidb/executor.(*innerWorker).run
/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/tidb/executor/index_lookup_join.go:498
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1571