Skip to content

Conversation

@alecgrieser
Copy link
Collaborator

@alecgrieser alecgrieser commented Dec 1, 2025

We previously had logic to preserve type names on all nested field types when we parse a file descriptor and turn it into a schema template. However, that can lead to problems if there are multiple nested types with the same name. This adds a yaml test with that configuration, and it also modifies the schema template parsing logic so that we no longer attempt to do this.

The type name preservation is still done on top level types, as that is still necessary in order to preserve index type names as well as to generate the FUSE expression off of the correct type names. However, most of the other locations that referenced the type name have been cleaned up so that they work on only the Type object.

This fixes #3789.

We previously had logic to preserve type names on all nested field types when we parse a file descriptor and turn it into a schema template. However, that can lead to problems if there are multiple nested types with the same name. This adds a yaml test with that configuration, and it also modifies the schema template parsing logic so that we no longer attempt to do this.

The type name preservation is still done on top level types, as that is still necessary in order to preserve index type names as well as to generate the FUSE expression off of the correct type names. However, most of the other locations that referenced the type name have been cleaned up so that they work on only the `Type` object.
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

📊 Metrics Diff Analysis Report

Summary

  • New queries: 10
  • Dropped queries: 0
  • Plan changed + metrics changed: 0
  • Plan unchanged + metrics changed: 0
ℹ️ About this analysis

This automated analysis compares query planner metrics between the base branch and this PR. It categorizes changes into:

  • New queries: Queries added in this PR
  • Dropped queries: Queries removed in this PR. These should be reviewed to ensure we are not losing coverage.
  • Plan changed + metrics changed: The query plan has changed along with planner metrics.
  • Metrics only changed: Same plan but different metrics

The last category in particular may indicate planner regressions that should be investigated.

New Queries

Count of new queries by file:

  • yaml-tests/src/test/resources/nested-type-name-clash.metrics.yaml: 10
@alecgrieser alecgrieser added the bug fix Change that fixes a bug label Dec 1, 2025
@alecgrieser
Copy link
Collaborator Author

The test failures are from logic that actually is relying on those types being present. But that's something that we want to remove in #3753. So, I think we should wait for that one to be in and then re-asses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix Change that fixes a bug

1 participant