[improve][jdbc] Add time handling support#24773
[improve][jdbc] Add time handling support#24773omrifried wants to merge 6 commits intoapache:masterfrom
Conversation
|
Thanks for the contribution @omrifried. There are checkstyle errors. Configuring code style and checkstyle in IntelliJ will help address those. Please check the guide at https://pulsar.apache.org/contribute/setup-ide/#configure-code-style . You can run |
lhotari
left a comment
There was a problem hiding this comment.
It would be useful to add integration tests to ensure that the functionality works end-to-end with databases. There's currently https://github.com/apache/pulsar/blob/master/tests/integration/src/test/java/org/apache/pulsar/tests/integration/io/sinks/JdbcPostgresSinkTester.java for Postgres. It might be better to add a new integration test class for testing time handling.
There's some advice in developing and running integration tests locally in #24924 (comment) and in https://github.com/apache/pulsar/tree/master/tests#readme .
| throw new IllegalArgumentException("Container nodes are not supported, the JSON must contains only " | ||
| + "first level fields."); |
There was a problem hiding this comment.
This may have been an issue on rebase given that line doesn't impact the logic I added, so there is no need to remove it. I will revert
|
Apologies for the delayed response @lhotari , I missed the notification on the PR. I will try to get to the integration tests next weekend. I also confirmed functionality with Postgres in a running instance, but will add integration tests for more solid test coverage |
Any chance to add the tests? |
|
Hi @lhotari! Apologies on the delay, I will block off time to get to this next weekend |
@omrifried You can setup Pulsar CI in your own fork so that you have full control of running the GitHub Actions workflow, that's explained in https://pulsar.apache.org/contribute/personal-ci/ |
|
Since the tests aren't integration tests, you should be able to run them this way locally: |
Main Issue: #23109
Motivation
Modifications
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-complete