ClickHouse: parse_one("SELECT xor()") raises ValueError instead of ParseError
Fully reproducible code snippet
import sqlglot
sqlglot.parse_one("SELECT xor()", read="clickhouse")
# ValueError: not enough values to unpack (expected at least 1, got 0)
Also reproducible with SELECT xor(;), SELECT xor(,) and SELECT xor(0, xor()).
Expected
A sqlglot.errors.ParseError, since the SQL is invalid, the same way other malformed function calls fail. Instead a bare ValueError escapes from exp._combine (this, *rest = conditions on an empty list, in expressions/core.py), reached via the ClickHouse parser's XOR builder. Any non-SqlglotError exception breaks callers that catch ParseError/SqlglotError around untrusted SQL. The same helper backs exp.and_() / exp.or_() / exp.xor() construction, so direct API calls with no arguments hit it too.
Checked against main at commit b294f7f.
Official Documentation
ClickHouse logical functions (xor): https://clickhouse.com/docs/en/sql-reference/functions/logical-functions
Found by property-based testing (a no-crash property over mutated inputs drawn from sqlglot's own test corpus).