ClickHouse文档说:
虚拟列是在引擎源代码中定义的集成表引擎属性。您不应该在CREATE查询中指定虚拟列,也不能在显示CREATE和描述表查询结果中看到它们。虚拟列也是只读的,因此不能将数据插入虚拟列中.
但是我找不到虚拟列名的列表。请你指出,他们叫什么名字?如何选择它们的值和数据类型?
发布于 2022-02-10 14:24:11
你是说MergeTree引擎还是file还是HDFS什么的?
MergeTree
_part -- name of a part
_part_index -- sequential index of the part in the query result
_partition_id -- name of a partition
_part_uuid -- unique part identifier, if enabled `MergeTree` setting `assign_part_uuids` (Part movement between shards)
_partition_value -- values (tuple) of a `partition by` expression
_sample_factor -- sample_factor from the queryhttps://stackoverflow.com/questions/71064954
复制相似问题