Apache Doris 中文技术论坛
Questions Tags Users Badges

with label后面 怎么能跟着函数 比如随机数

Asked Apr 3, 2024 Modified Jan 1, 0001
Viewed 41
2.0

insert overwrite table aaaa2
with label uuid()
with a as(select * from aaaa)
select * from a
;

类似uuid 想使用CTE但是不想手动维护with label 这个怎么实现自动绑定一个随机数

edited Jan 1, 0001
sdhzwc8
asked Apr 3, 2024
1 Answers

看下你是如何实现的,代码的话,你可以前缀+时间的形式生成然后作为参数传给label,或者通过脚本也行。但是直接在client端使用uuid()目前是不支持的

edited Jan 1, 1970
徐振超@SelectDB(可以直接加微信Faith_xzc)8271
answered Apr 3, 2024
Related Questions
Doris 2.0.15,3FE、6BE(3BE mix角色 3BE computation角色)3个mix角色的BE节点CPU使用率100%
1 answers
Doris Routine Load自动恢复机制
我的doris版本为2.0.6 在备份操作时,会导致所以fe节点宕机,这种情况该怎么排查,为什么备份会导致这个问题?
1 answers
doris fe节点变更成高可用配置
1 answers
各位大哥在通过k8s安装doris3.0的时候,有没有遇到cg启动不起来,提示Set max number of open file descriptors to a value greater than 60000.
1 answers
doris主键表可以bucket配置太小,怎么修改?
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2026 Apache Doris 中文技术论坛.