Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

What is a "leaf expression"?

Partition-clause expressions are limited in the following ways:
    Your partition-clause must calculate a single non-null value for each row. You can reference multiple columns, but each row must return a single value.
    You can specify leaf expressions, functions, and operators in the partition clause expression.
    All leaf expressions in the partition clause must be either constants or columns of the table.

Source https://my.vertica.com/docs/6.1.x/HTML/index.htm#18125.htm

share|improve this question
I guess it means "leaf" as when after parsed by the parser and translated into a parse tree –  ypercube Nov 4 '13 at 15:49
If my assumption is correct, this forbids the use of some functions, like CURRENT_TIMESTAMP() and RANDOM() –  ypercube Nov 4 '13 at 15:57

1 Answer 1

I'm pretty sure leaf expression means something like "a?b:c". A discrete value from a conditional.

But basically the overall message is saying you need to avoid null values. They can't partition on a null.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.