Skip to content

Comments

[IOTDB-4551] Fix schema query npe with template#7511

Merged
MarcosZyk merged 3 commits intoapache:masterfrom
MarcosZyk:fix_schema_query_npe_with_template
Oct 4, 2022
Merged

[IOTDB-4551] Fix schema query npe with template#7511
MarcosZyk merged 3 commits intoapache:masterfrom
MarcosZyk:fix_schema_query_npe_with_template

Conversation

@MarcosZyk
Copy link
Contributor

@MarcosZyk MarcosZyk commented Oct 4, 2022

Description

Cause

During planning stage of schema query or schema fetch, the related template will be taken and set to the plan node. The unrelated template used in involved schemaRegion won't be taken, which results in the npe occurring during traversing the MTree in schemaRegion.

Solution

When traversing the MTree and meet template not provided in templateMap which passed in by schema query or fetch plan, ignore this node using such unrelated template.

@MarcosZyk MarcosZyk merged commit a54c9c4 into apache:master Oct 4, 2022
@MarcosZyk MarcosZyk deleted the fix_schema_query_npe_with_template branch November 1, 2022 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant