predicates.asciidoc 560 B

1234567891011121314151617181920212223
  1. [discrete]
  2. [[esql-predicates]]
  3. === `IS NULL` and `IS NOT NULL` predicates
  4. For NULL comparison, use the `IS NULL` and `IS NOT NULL` predicates:
  5. [source.merge.styled,esql]
  6. ----
  7. include::{esql-specs}/null.csv-spec[tag=is-null]
  8. ----
  9. [%header.monospaced.styled,format=dsv,separator=|]
  10. |===
  11. include::{esql-specs}/null.csv-spec[tag=is-null-result]
  12. |===
  13. [source.merge.styled,esql]
  14. ----
  15. include::{esql-specs}/null.csv-spec[tag=is-not-null]
  16. ----
  17. [%header.monospaced.styled,format=dsv,separator=|]
  18. |===
  19. include::{esql-specs}/null.csv-spec[tag=is-not-null-result]
  20. |===