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

New validation on wildcard was added to AbstractJdbcSource.java, #479

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

Conversation

dengjuan0721
Copy link

Summary

This change introduces a check during the parsing of settings to determine whether the value associated with the "tables" key is a wildcard character "*". If it is, an exception will be thrown.
Fixes: #477

Changes

Implemented a validation mechanism within the settings parser that checks for the presence of a wildcard character "*" as the value for the "tables" key. Prior to this change, the parser did not restrict the use of wildcard characters, which could lead to ambiguous or unintended behavior.


Features

Wildcard ‘*’ Validation

Bug Fixes

Adding Data Source Tables containing wildcards '*' breaks schema


Tests

1.use '*' to select tables
截屏2024-03-17 13 34 00
2.web UI prompts 'unable to add
截屏2024-03-17 13 33 49
3.The exception output appears in the console section of the IDE.
截屏2024-03-17 13 31 47


Further Contribution

If this solution is deemed viable, it will be necessary to implement the same validation check across the remaining five implementations. Ensuring this consistency will maintain the protection against using a wildcard character '*' as a table name across the entire codebase, which is critical for the comprehensive resolution of issue #477.
截屏2024-03-17 13 40 34

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