跳到主要内容
未列出页
此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。
版本:Nightly

Struct Coercion

Comparison and Ordering

DataFusion supports comparing STRUCT values with standard comparison operators (=, !=, <, <=, >, >=). Ordering comparisons are lexicographical and follow DataFusion's default ascending comparison behavior, where NULL sorts before non-NULL values.

Examples
SELECT {x: 1, y: 2} < {x: 1, y: 3};
-- true

SELECT {x: 1, y: NULL} < {x: 1, y: 2};
-- true

SELECT {x: 1, y: NULL} = {x: 1, y: NULL};
--true