Operations on original columns in SQL-SELECT-JOIN query from different databases using the "superset://" connection #35173
mastavichus-vp
started this conversation in
General
Replies: 1 comment
-
|
The SQLAlchemy function works fine. Sorry |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there any way to transform the original column values in queries from a several different databases by from type super-connection "Superset meta database" with SQLAlchemy URI "superset://"?
First of all, necessary conversion to a string type is necessary for performing comparisons in a query with JOIN.
In superset_config.py:
Tried syntaxes unsuccessfully,
postgres
jinja
select {{ a.dt }} as dt2, a.* from "pg1.synth.t1" a;python
select str(a.dt) as dt2, a.* from "pg1.synth.t1" a;javascript
select (a.dt).toString() as dt2, a.* from "pg1.synth.t1" a;Beta Was this translation helpful? Give feedback.
All reactions