[Bug] Correct classification of plan nodes
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 58/100
Direção de pesquisa
Read is_plan_node in src/backend/cdb/cdbllize.c and inspect the node definitions in plannodes.h that determine the T_Plan_Start..T_Plan_End range. Check whether the range and the listed exceptions classify plan nodes correctly, then add or update focused tests for serialization classification. Done means non-plan nodes are excluded and actual plan nodes are recognized.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Apache Cloudberry version
main
What happened
Some nodes that are not plan nodes have been incorrectly categorized as plan nodes, while some actual plan nodes have failed to be classified as such. We need to categorize these nodes correctly; otherwise, it could lead to issues regarding the correctness of serialization. What follows may not be exhaustive.
diff --git a/src/backend/cdb/cdbllize.c b/src/backend/cdb/cdbllize.c
index 31749f0305b..b4bdf5bf863 100644
--- a/src/backend/cdb/cdbllize.c
+++ b/src/backend/cdb/cdbllize.c
@@ -1430,6 +1430,24 @@ is_plan_node(Node *node)
if (node == NULL)
return false;
+ /*
+ * Node tags are generated in the order the structs appear in
+ * plannodes.h, so the T_Plan_Start..T_Plan_End range is not exact:
+ * NestLoopParam and ExternalScanInfo are defined among the plan nodes
+ * but are not Plans, and PartitionSelector is defined after
+ * PlanRowMark but is one.
+ */
+ switch (nodeTag(node))
+ {
+ case T_NestLoopParam:
+ case T_ExternalScanInfo:
+ return false;
+ case T_PartitionSelector:
+ return true;
+ default:
+ break;
+ }
+
if (nodeTag(node) >= T_Plan_Start && nodeTag(node) < T_Plan_End)
return true;
return false;
What you think should happen instead
No response
How to reproduce
Cannot be exhaustively listed
Operating System
NAME="Rocky Linux" VERSION="9.5 (Blue Onyx)"
Anything else
No response
Are you willing to submit PR?
- Yes, I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct.
- Linguagem predominante
- C
- Estrelas
- 1.4k
- Forks
- 273
- Merge médio
- 4d 6h
- PRs com merge (30d)
- 105
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de apache/cloudberry
-
isolation2 lockmodes fails on cassert builds: extra AccessShareLock on partition rootTalvez já em andamento @tuhaihe assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
apache/cloudberry#2356 ·
Mantenedores costumam responder em até 2 dias
-
psql tab completion broken for storage servers, tags, profiles and resource groups (pre-PG15 query format)Talvez já em andamento @allenvox assumiu há 5 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
apache/cloudberry#2316 ·
Mantenedores costumam responder em até 2 dias
-
[Bug] Expand fails to recognize user-defined tablespacesTalvez já em andamento @nix-oss assumiu há 92 dias. Abertatype: Bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
apache/cloudberry#1885 · 2 reações ·
Mantenedores costumam responder em até 2 dias
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)Talvez já em andamento @talmacschen-arch assumiu há 154 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
apache/cloudberry#1825 ·
Mantenedores costumam responder em até 2 dias
-
type: Bug
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 53/100
apache/cloudberry#2350 · 1 reação ·
Mantenedores costumam responder em até 2 dias
Todas as issues de apache/cloudberry
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
389ds/389-ds-base#8152 ·
Mantenedores costumam responder em até 2 dias
-
meta:feature-request
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
mpv-player/mpv#18855 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
[FIX]: File Tree in appAbertabug help wanted
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
Mantenedores costumam responder em até 1 dia
-
windows-artifacts: the win-arm64 job uses a Visual Studio generator missing from windows-11-armAberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100