Skip to content

Conversation

@mjgarton
Copy link
Contributor

Until now, the parameter types were obtained by calling .values() on the HashSet of parameter types, but this leads to unpredicable ordering, causing queries to fail because their parameters were often transposed.

Instead, sort the parameter types by their names. This should always work because in the postgresql case, the keys are '$1', '$2', etc.

Until now, the parameter types were obtained by calling `.values()` on
the HashSet of parameter types, but this leads to unpredicable ordering,
causing queries to fail because their parameters were often transposed.

Instead, sort the parameter types by their names.  This should always
work because in the postgresql case, the keys are '$1', '$2', etc.
@sunng87 sunng87 merged commit 9a81f17 into datafusion-contrib:master Jan 30, 2025
6 checks passed
@mjgarton mjgarton deleted the fix_param_ordering_2 branch September 21, 2025 17:17
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.

2 participants