spark-instrumented-optimizer/sql/catalyst/src
Kent Yao 6d4cc7b855 [SPARK-27880][SQL] Add bool_and for every and bool_or for any as function aliases
### What changes were proposed in this pull request?

bool_or(x) <=> any/some(x) <=> max(x)
bool_and(x) <=> every(x) <=> min(x)
Args:
  x: boolean
### Why are the changes needed?

PostgreSQL, Presto and Vertica, etc also support this feature:
### Does this PR introduce any user-facing change?

add new functions support

### How was this patch tested?

add ut

Closes #26126 from yaooqinn/SPARK-27880.

Authored-by: Kent Yao <yaooqinn@hotmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
2019-10-16 22:43:47 +08:00
..
main [SPARK-27880][SQL] Add bool_and for every and bool_or for any as function aliases 2019-10-16 22:43:47 +08:00
test [SPARK-27880][SQL] Add bool_and for every and bool_or for any as function aliases 2019-10-16 22:43:47 +08:00