Skip to content
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

generate table partitions replaces whitespace in primary keys with a single space. #1183

Open
sundar-mudupalli-work opened this issue Jul 1, 2024 · 0 comments
Labels
priority: p2 Medium priority. Fix may not be included in next release (e.g. minor documentation, cleanup) type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@sundar-mudupalli-work
Copy link
Collaborator

Hi,

When generate-table-partitions is invoked, it will replace whitespace in primary key literals with a single space. The issue is due to this function - _extract_where.

This function replaces whitespace with a single space. This is appropriate, except the replace function used also replaces whitespace within quoted strings. This is incorrect behavior.

We will need to parse and only do the replacement for those parts of the string that are not quoted strings.

Thanks.

Sundar Mudupalli

@sundar-mudupalli-work sundar-mudupalli-work added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Jul 1, 2024
@helensilva14 helensilva14 added the priority: p2 Medium priority. Fix may not be included in next release (e.g. minor documentation, cleanup) label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Medium priority. Fix may not be included in next release (e.g. minor documentation, cleanup) type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants