Add support for database engine SAP Hana#8411
Add support for database engine SAP Hana#8411villebro merged 8 commits intoapache:masterfrom axuew:master
Conversation
villebro
left a comment
There was a problem hiding this comment.
This looks much better than the previous PR. A few small change requests, but apart from that ok. Also, please add Hana to the list of officially supported dbs in docs/index.rst.
|
Oops, looks like something went wrong with this PR |
It has been resubmitted. |
|
For black, you can run the command |
Ok, we'll have time to solve this problem in a few days |
It has been resubmitted. Please try again. Thank you |
|
@axuew: Are you sure that the Judging by the raw query it constructs, it seems that the defined time grain functions are not being used; instead it looks like the PostgreSQL functions are employed: This can also be seen from the options provided in the drop-down, which are more than you actually defined: I'm not sure if it's my fault here at any point, though. But I would kindly ask you to double-check if the definition is working for you. And if it does, if you have any hints on why it doesn't for me... |
|
FYI: There seems to be a bug when filtering on BOOLEAN values: There seems to be no way to enter the boolean value other than in a custom WHERE clause. When using the Filters field in Explore View with Filter Select enabled, it displays the When trying the same using a Filter Chart in a Dashboard, the value 0 or 1 is selectable, but the filtered charts contain no data, since the SQL query contains a WHERE predicate like I.e., the conversion of HANA's true/false to its representation as 1/0 in Python and back to SQL code is not working as it should, yet. I don't know if such issues are supposed to be fixed in the initial PR, or if things like this may get addressed later on... |
villebro
left a comment
There was a problem hiding this comment.
@axuew this is very close to being mergeable, hang in there! Please check the comments by @rumbin and myself, validate any changes locally and run black to format the code properly.
@rumbin the problem you picked up regarding booleans might affect other engines, too, so I propose opening a ticket about that once this gets finalized.
Get the latest version
Increase time, minute, and second
villebro
left a comment
There was a problem hiding this comment.
LGTM; will leave this open for a day or so for the possibility for others to chime in, but I think this is good to go now.
* Add support for database engine SAP Hana * Support hana services Increase time, minute, and second * Fix hana return string * Fix formatting errors





CATEGORY
Choose one
SUMMARY
support for database engine SAP Hana

This feature requires the addition of a third library: sqlalchemy-hana and hdbcli
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION
REVIEWERS