Skip to content

Fix ambiguous column references in spatial queries #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bwdmr
Copy link

@bwdmr bwdmr commented May 17, 2025

Resolves an issue where column references were becoming ambiguous in complex joins involving geometry columns. This change modifies the path generation to explicitly qualify columns with their schema or table alias, replacing the previous approach that created unqualified column names. Specifically, we now prepend the schema or alias name with a dot separator before the column path, ensuring proper SQL column qualification.

This prevents errors like "column reference is ambiguous" when using spatial functions on tables with similar column names in multi-table joins.

Resolves an issue where column references were becoming ambiguous in complex
joins involving geometry columns. This change modifies the path generation
to explicitly qualify columns with their schema or table alias, replacing
the previous approach that created unqualified column names. Specifically,
we now prepend the schema or alias name with a dot separator before the
column path, ensuring proper SQL column qualification.

This prevents errors like "column reference is ambiguous" when using spatial
functions on tables with similar column names in multi-table joins.

Signed-off-by: bwdmr <[email protected]>
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