Add ibm-db package to enable DB2 as datasource:#7581
Conversation
|
In 65d0eb7 we commented out the |
|
I can find at least this one for M1 : ibmdb/python-ibmdb#712 . Does it match with what you had observed ? |
There is also this one : https://github.com/ibmdb/python-ibmdb/issues/797#issuecomment-2565727152 |
Somehow, the URL is correct but the link was broken. |
|
And, when I try to build Redash on my Apple Silicon Mac using "make up", I got the following error. |
yes, correct is ibmdb/python-ibmdb#797 (comment) |
it should be linked to this : ibmdb/python-ibmdb#712 @yoshiokatsuneo is this something that may be done ? at least tried on M1 to confirm it fixes this issue ? |
|
@nicof38 I think running intel binary on Apple Silicon requires intel CPU emulation that is too slow to be practical solution... |
even without intel, it should work as mentionned in readme here : https://github.com/ibmdb/python-ibmdb/blob/master/README.md#for-macos-m1m2-apple-silicon-chip-system Can you test it on your side with your M1 ? |
|
As I mentioned, I tried to use this PR with ibm-db (3.2.7) , but the installing ibm-db failed... |
|
@yoshiokatsuneo ok, ibm-db package only only state to run on python x64 for M1, which is not the case here, so not working for this platform. |
And, I just noticed that the documentation says about MacOS on Apple Silicon. But Redash on Mac runs on Docker, so actually it requires to run on Linux on Apple Silicon(ARM), instead of MacOS on Apple Silicon. |
It looks right. there is no official description mentioning about CPU... At the same time, nowadays, I feel practically most open source software support ARM and Intel nowadays, and it is common to support both platform nowadays... Technically, it should be possible to support both platform, and make ibm-db2 available only on intel platform... |
|
Possibly, we may enable ibm-db only on intel platform on pyproject.tom like below ? (I only tested on Mac.) |
|
@yoshiokatsuneo thanks for this one, tested on my side, and working fine also. Gonna modify the PR with this ;) |
|
Tested on aarch64, and observed that DB2 does not show up as an option when adding a new Data Source. (it does on x86_64) I think this is okay since this is a proprietary database. |
|
Enabling only on Intel platform feels reasonable, although it still means that by default it won't be available. |
|
The poetry install is running fine on my side, and was OK also for you @yoshiokatsuneo . Any idea why not building at this time ? |
* master: (69 commits) Update Python version to 3.13 (getredash#7636) Update plotly.js to 3.3.1, react-pivottable to 0.11.0 (getredash#7634) Add charset option to RDS MySQL datasource (getredash#7616) Aggregate y value for same x (getredash#7631) fix(mysql): Change default charset to utf8mb4 (getredash#7615) Update packages for compatibility with setuptools 82 (getredash#7622) Snapshot: 26.02.0-dev chore: support ipv6 for server in docker (getredash#7596) Add impersonation option in trino datasource (getredash#7605) Fix Elasticsearch connector configuration key mismatch (getredash#7607) duckdb: Show catalog (database) where applicable (e.g. Motherduck) (getredash#7599) Snapshot: 26.01.0-dev Feature/catch notsupported exception (getredash#7573) Multi-org: format base path, not including protocol (getredash#7260) fix(destinations): Handle unicode characters in webhook notifications (getredash#7586) Persist updated values and apply saved dashboard parameters (getredash#7570) Add ibm-db package to enable DB2 as datasource: (getredash#7581) Snapshot: 25.12.0-dev PostgreSQL: allow connection parameters to be specified (getredash#7579) Add lineShape option for Line and Area charts (getredash#7582) ...
What type of PR is this?
Description
No modification for compatiblity, just re-enable the DB2 driver
How is this tested?
Add a datasource, DB2 datasource is available and working as it was before release 25.
Related Tickets & Documents
#7349 (comment)
Mobile & Desktop Screenshots/Recordings (if there are UI changes)