Best way to query a table with a predefined macro in DuckDB #11533
Unanswered
yannsartori
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello all,
I've decided that Ibis would be a great tool for me to work with DuckDB files. Currently, I produce a
.ddb
file and hand it off to another person to query.An example dataset I have in this
.ddb
file I produce is a bunch of temperatures e.g.Since temperature values can exist in a bunch of tables, I want to use a macro to make it easier to query. It makes sense to me, given the nature of ibis, that there is no nice API to create it, so I resort to
raw_sql
:However, I couldn't find a nice way for the end-user to query
temperatures
with my macro. The best I have is:which to me, defeats the purpose of using Ibis. I would like for something slightly more developer-friendly, something akin to maybe:
but that gives me an exception. Is there any better way of utilizing it than using
connection.sql
?Beta Was this translation helpful? Give feedback.
All reactions