是否可以将实时视图名称作为Clickhouse查询中的参数传递?

发布于 2025-01-24 18:18:17 字数 117 浏览 1 评论 0原文

例如,就像

CREATE LIVE VIEW %(live_view_name)s WITH REFRESH

它仅适用于其他参数(条件),但与视图名称无效。

For example, like

CREATE LIVE VIEW %(live_view_name)s WITH REFRESH

It works only with other parameters (WHERE condition) but not with view name.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

从来不烧饼 2025-01-31 18:18:17

看起来您使用Python进行HTTP查询?

我认为这是不可能


https://clickhouse.com/clickhouse.com/docs.com/docs/docs/en/interfaces/ http#cli queries-with-parameters

https://clickhouse.com/dochouse.com/docs.com/docs/docs/en/inen/interfaces /cli#cli queries-with-parameters

尝试使用创建live视图{live_view_name:didentifier} with Refresh

Look like you use python for make HTTP query?

I think it's not possible because parameter value will escape as string literal, not as field name

Look to
https://clickhouse.com/docs/en/interfaces/http#cli-queries-with-parameters
and

https://clickhouse.com/docs/en/interfaces/cli#cli-queries-with-parameters

and try to use CREATE LIVE VIEW {live_view_name:Identifier} WITH REFRESH

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文