cwq222 opened a new issue, #13318:
URL: https://github.com/apache/gravitino/issues/13318
### What would you like to be improved?
ClickHouse's `PARTITION BY` accepts arbitrary expressions. A common valid
pattern is a nested type conversion such as `toYYYYMM(toDate(event_time))`,
which means "convert `event_time` to Date, then take the year-month"; the
actual partition column is `event_time` at month granularity.
Currently (after PR #13080), such a partition key is loaded with an empty
`partitioning()` and the canonical expression is preserved verbatim in the
read-only `partition-key` property. It would be better to extract the inner
column and expose a structured transform, e.g. `toYYYYMM(toDate(event_time))`
-> `month("event_time")`.
### How should we improve?
Transparently extract the inner column from nested type-conversion functions
so that the partition key can be structured, e.g.
`toYYYYMM(toDate(event_time))` -> `month("event_time")`. The detailed scope and
semantic contract can be discussed later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]