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

BATCH-2515: Integrate SAP Hana as supported Spring Batch database #595

Closed
wants to merge 3 commits into from

Conversation

breglerj
Copy link
Contributor

This commit adds SAP HANA as a supported Spring Batch database, enabling
developers to seamlessly move their existing Spring Batch projects to SAP HANA
or easily starting new Spring Batch projects on SAP HANA.

This commit contains the following changes:

  • Add SAP HANA to the DatabaseType enum
  • Add HanaPagingQueryProvider and tests
  • Add properties files for SAP HANA
  • Increase Spring version to 5.0.5 which is the first version to include
    HanaSequenceMaxValueIncrementer (see https://jira.spring.io/browse/SPR-16558)


-- insert script that 'copies' existing batch_job_params to batch_job_execution_params
-- sets new params to identifying ones
-- verified on h2,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

verified on h2

Is there a way to verify DDL scripts on a real SAP HANA instance? We have introduced Docker-based integration tests to verify DDL scripts on non-embeddable databases (see MySQLJobRepositoryIntegrationTests as an example). I see there is a Docker image for SAP HANA express edition (which requires an DockerHub account, but that's not an issue). Could you please add a Docker-based test for HANA?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added an integration test based on the SQL Server test. Since the PR for adding HANA to testcontainers is still open I've added a simple version of the HANA container class to the test project.

@fmbenhassine fmbenhassine added the status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter label Jul 6, 2021
@fmbenhassine
Copy link
Contributor

Hi @breglerj ,

Thank you for your PR! We are planning to add support for SAP HANA as a job repository in the next version, v5. The changes look good to me 👍 My only concern here is with testing. I'm not familiar with HANA so I would appreciate your help in making sure we can test this support on a real HANA instance. Please take a look at my comments above. Thank you.

This commit adds SAP HANA as a supported Spring Batch database, enabling
developers to seamlessly move their existing Spring Batch projects to SAP HANA
or easily starting new Spring Batch projects on SAP HANA.

This commit contains the following changes:

- Add SAP HANA to the DatabaseType enum
- Add HanaPagingQueryProvider and tests
- Add properties files for SAP HANA
@breglerj
Copy link
Contributor Author

Hi @breglerj ,

Thank you for your PR! We are planning to add support for SAP HANA as a job repository in the next version, v5. The changes look good to me 👍 My only concern here is with testing. I'm not familiar with HANA so I would appreciate your help in making sure we can test this support on a real HANA instance. Please take a look at my comments above. Thank you.

Hi @benas ,

I've updated this PR and incorporated your comments. Please let me know if you need anything else.

Thanks.

@fmbenhassine fmbenhassine removed the status: waiting-for-reporter Issues for which we are waiting for feedback from the reporter label Sep 8, 2021
fmbenhassine added a commit to fmbenhassine/spring-batch that referenced this pull request Jan 11, 2022
- Update versions of jdbc driver and docker image
- Update Javadocs
- Remove JOB_CONFIGURATION_LOCATION from DDL schema
- Remove unused resources
fmbenhassine added a commit that referenced this pull request Mar 18, 2022
- Update versions of jdbc driver and docker image
- Update Javadocs
- Remove JOB_CONFIGURATION_LOCATION from DDL schema
- Remove unused resources
@fmbenhassine
Copy link
Contributor

Rebased and merged as 9388abb. I introduced some minor updates in 968a5b5.

Thank you for this great addition!

@fmbenhassine fmbenhassine added this to the 5.0.0-M2 milestone Mar 18, 2022
lcmarvin pushed a commit to lcmarvin/spring-batch that referenced this pull request Apr 16, 2022
- Update versions of jdbc driver and docker image
- Update Javadocs
- Remove JOB_CONFIGURATION_LOCATION from DDL schema
- Remove unused resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate SAP Hana as supported Spring Batch database
2 participants