-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Checkpointing source-mssql #34182
Checkpointing source-mssql #34182
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @rodireich and the rest of your teammates on Graphite |
5f7dee5
to
475c666
Compare
153a590
to
2a8d8ee
Compare
475c666
to
dbe4d60
Compare
766f928
to
d41a355
Compare
dbe4d60
to
2515511
Compare
b6b030d
to
9f3d196
Compare
...c/main/java/io/airbyte/cdk/integrations/debezium/internals/mssql/MssqlDebeziumStateUtil.java
Outdated
Show resolved
Hide resolved
ccec6e6
to
c6f1f6d
Compare
2515511
to
c20d5db
Compare
c6f1f6d
to
2823c70
Compare
c20d5db
to
957d9c9
Compare
cb348fb
to
ca59414
Compare
/publish-java-cdk dry-run=true
|
/publish-java-cdk
|
@rodireich - can you hold off on merging this pr for a little bit? @subodh1810 published cdk 0.17.1 here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No major complaints!
returnValue = bytes.longValue(); | ||
} | ||
return returnValue; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Surely there is something in apache-commons or somewhere which already does this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked for and couldn't find.
Implementation will have the other way around typically
byte size to human readable:
FileUtils.byteCountToDisplaySize for example
resultSet -> JdbcUtils.getDefaultSourceOperations().rowToJson(resultSet)); | ||
if (jsonNodes != null) { | ||
jsonNodes.stream().map(node -> Jsons.convertValue(node, Index.class)) | ||
.forEach(i -> LOGGER.info(String.valueOf(i))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can we add a prefix here like "Index lookup query result: {}"
also can we please stick to regular for-loops in case the Streams API isn't obviously obviously a better choice?
jsonNodes.stream().map(node -> Jsons.convertValue(node, Index.class)) | ||
.forEach(i -> LOGGER.info(String.valueOf(i))); | ||
} | ||
} catch (final Exception ex) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to catch all exceptions here? Especially considering we're just silently swallowing them? Is the final
keyword really useful here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this is informational log I never want it to stop the sync.
There are some variations that are not known - all sorts of hosted and managed and serverless db services won't let you look under the hood.
In the past we ended up adding this to equivalent pre sync logs - getting the version and engine of mysql for example.
Not sure what you meant with final
|
||
} | ||
|
||
public static String getMaxOcValueForStream(final JdbcDatabase database, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be worth returning an Optional<String>
value instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This max value is a must to be able to upper bound our sync - so failing to retrieve it should error out.
return String.join(", ", columnNames.stream() | ||
.map( | ||
el -> hierarchyIdColumns.contains(el) ? String | ||
.format("%s.ToString() as %s%s%s", el, identifierQuoteString, el, identifierQuoteString) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: String
and .format
on same line please
No problem @edgao |
@rodireich I think you will have to republish the CDK after pulling in my changes! I merged the PR so you can pull in master and re-publish |
/publish-java-cdk force=true
|
/approve-and-merge reason="unpublished source-mssql merge until we fix CI testing" |
Co-authored-by: nguyenaiden <duy@airbyte.io> Co-authored-by: Xiaohan Song <xiaohan@airbyte.io> Co-authored-by: Marius Posta <marius@airbyte.io>
Co-authored-by: nguyenaiden <duy@airbyte.io> Co-authored-by: Xiaohan Song <xiaohan@airbyte.io> Co-authored-by: Marius Posta <marius@airbyte.io>
Co-authored-by: nguyenaiden <duy@airbyte.io> Co-authored-by: Xiaohan Song <xiaohan@airbyte.io> Co-authored-by: Marius Posta <marius@airbyte.io>
Co-authored-by: nguyenaiden <duy@airbyte.io> Co-authored-by: Xiaohan Song <xiaohan@airbyte.io> Co-authored-by: Marius Posta <marius@airbyte.io>
Co-authored-by: nguyenaiden <duy@airbyte.io> Co-authored-by: Xiaohan Song <xiaohan@airbyte.io> Co-authored-by: Marius Posta <marius@airbyte.io>
What
Describe what the change is solving
It helps to add screenshots if it affects the frontend.
How
Describe the solution
Recommended reading order
x.java
y.python
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user?
For connector PRs, use this section to explain which type of semantic versioning bump occurs as a result of the changes. Refer to our Semantic Versioning for Connectors guidelines for more information. Breaking changes to connectors must be documented by an Airbyte engineer (PR author, or reviewer for community PRs) by using the Breaking Change Release Playbook.
If there are breaking changes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
Pre-merge Actions
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.0.0.1
Dockerfile
has version0.0.1
README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog with an entry for the initial version. See changelog exampledocs/integrations/README.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
Updating a connector
Community member or Airbyter
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
Connector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:generateScaffolds
then checking in your changesUpdating the Python CDK
Airbyter
Before merging:
--use-local-cdk --name=source-<connector>
as optionsairbyte-ci connectors --use-local-cdk --name=source-<connector> test
After merging: