Aliases for long filenames/urls? #129
Unanswered
thedatadoc
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hello @thedatadoc and thanks for the kind words! For persistent sessions, you should be able to achieve this using SET ClickHouse parameters to provide arbitrary variables into any query. Here's an example I use for urleng purely as a reference:
Is this compatible with your goal? |
Beta Was this translation helpful? Give feedback.
1 reply
-
In Python, you can use something like this: urlPath = "https://some.webserver.com/abc123"
SQL = f"SELECT * FROM url({urlPath}, JSONEachRow)" |
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
-
I'm new to chdb and am a big fan. Great work! I'm curious - is there a way for me to create an alias for a long filename or url so that my users can simplify their queries? I'd prefer to avoid text substitution as that is surely the path to ruin. Their SQL statements will never be as simple as I imagine.
Beta Was this translation helpful? Give feedback.
All reactions