SAP HANA Driver implemented
Check List
- [X] Tests has been run in packages where changes made if available
- [X] Linter has been run for changed code
- [X] Tests for the changes have been added if not covered yet
- [x] Docs have been added / updated if required
Issue Reference this PR resolves This is the initial driver implementation for SAP HANA, so no issue was resolved
Description of Changes Made (if issue reference is not provided) SAP HANA is quite heavy database thus can't create a docker container to run test cases against it. I verified all the test on a remote HANA box. see the results
Latest Test results

@ovr may I ask who will review my PR?
Codecov Report
Base: 82.42% // Head: 40.81% // Decreases project coverage by -41.60% :warning:
Coverage data is based on head (
744970a) compared to base (028895d). Patch coverage: 11.29% of modified lines in pull request are covered.
:exclamation: Current head 744970a differs from pull request most recent head 6e4943e. Consider uploading reports for the commit 6e4943e to get more accurate results
Additional details and impacted files
@@ Coverage Diff @@
## master #5648 +/- ##
===========================================
- Coverage 82.42% 40.81% -41.61%
===========================================
Files 139 150 +11
Lines 19621 19533 -88
Branches 0 5068 +5068
===========================================
- Hits 16172 7973 -8199
- Misses 3449 10736 +7287
- Partials 0 824 +824
| Flag | Coverage Δ | |
|---|---|---|
| cube-backend | 40.81% <11.29%> (?) |
|
| cubesql | ? |
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Hey @zhjuncai ! Thanks for contributing to this one! Could you please also add at least a smoke E2E test? You can find an example here: https://github.com/cube-js/cube.js/blob/master/packages/cubejs-testing/test/smoke-materialize.test.ts.
Hey @zhjuncai ! Thanks for contributing to this one! Could you please also add at least a smoke E2E test? You can find an example here: https://github.com/cube-js/cube.js/blob/master/packages/cubejs-testing/test/smoke-materialize.test.ts.
Thanks @paveltiunov I will try my best to add a smoke E2E test.
Hello @paveltiunov I tried to add smoke test for hana driver, but it's not working as it still require test docker container for HANA. could you please review the driver first, once it's reviewed and merged. I will continue to smoke testing...
@paveltiunov could you help to review?
@zhjuncai Do you mean there's no docker image of SAP HANA available?
@zhjuncai You might want to update https://www.npmjs.com/package/cubejs-hana-driver README as we published backlink here https://cube.dev/docs/config/databases#third-party-community-drivers. Please see https://github.com/cube-js/cube.js/blob/master/CONTRIBUTING.md#contributing-database-drivers for more info.
There is no supported docker image for HANA for now, Hana-express docker image is deprecated, meanwhile Hana express also requires lots of memory to run. I don't want to run the deprecated image and drain your pipeline. > @zhjuncai Do you mean there's no docker image of SAP HANA available?
I will update it soon. > @zhjuncai You might want to update https://www.npmjs.com/package/cubejs-hana-driver README as we published backlink here https://cube.dev/docs/config/databases#third-party-community-drivers. Please see https://github.com/cube-js/cube.js/blob/master/CONTRIBUTING.md#contributing-database-drivers for more info.
I've updated the README, please start review process...
It would be great to see a more substantial usage of this driver before it gets added to the distribution of Cube Core.