-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fail fast or warn user if queries have mismatched column numbers #56
Comments
To decide on which option would we like to go with: Option 1: Basic parsing of SQL query
Option 2: Run whole reconciliation run
Option 3: After completing the run on source database, do the comparison with first row of target database
Option 4: Get the first element from both sources for validation, then all elements for reconciliation
Option 5: Build a separate api for validation of the query
|
Sharing my thoughts here:
|
Suggestion
|
How databases supported by r2dbc specify number of records to return:
References |
Context / Goal
If the two queries expressed in a dataset have different numbers of columns, they cannot possibly produce matches, when doing a hash-based comparison.
We should ideally fail fast, or at the very least warn the user clearly in the results somehow.
Currently we do not do any query parsing at startup, as this is entirely delegated to the runtime drivers for the relevant databases. We also do not want to introduce a startup connectivity dependency on an given datasource.
Expected Outcome
Evaluate and implement some approach to addressing this
target
dataset. This would have implications for Interleave persistence of source + target rows #41 however, and makes things a bit more complex, as the target parsing needs to understand something about the source parsing.Out of Scope
Additional context / implementation notes
The text was updated successfully, but these errors were encountered: