是否可以将实时视图名称作为Clickhouse查询中的参数传递?
例如,就像
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看起来您使用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