[CALCITE-7818] Druid interval extraction drops rows for mixed OR predicates

Interval extraction skipped OR operands that it could not represent as
timestamp ranges. The resulting partial interval could exclude matching
rows when the filter rule removed the original predicate.

Abort extraction when any disjunct cannot be represented, so the existing
filter path retains the full predicate. Document the extraction return
values and include equivalent SQL beside the constructed test condition.

Cover both operand orders, an empty-range disjunct, and the planner path
that must retain the original intervals and filter.
3 files changed
tree: 2ea34079d5c125c091134fa6e352775cf8da063f
  1. .github/
  2. .idea/
  3. annotations/
  4. arrow/
  5. babel/
  6. bom/
  7. buildSrc/
  8. cassandra/
  9. core/
  10. druid/
  11. elasticsearch/
  12. example/
  13. file/
  14. geode/
  15. gradle/
  16. innodb/
  17. kafka/
  18. linq4j/
  19. mongodb/
  20. pig/
  21. piglet/
  22. plus/
  23. redis/
  24. release/
  25. server/
  26. site/
  27. spark/
  28. splunk/
  29. src/
  30. testkit/
  31. ubenchmark/
  32. .asf.yaml
  33. .editorconfig
  34. .gitattributes
  35. .gitignore
  36. .mailmap
  37. .ratignore
  38. AGENTS.md
  39. build.gradle.kts
  40. CLAUDE.md
  41. gradle.properties
  42. gradlew
  43. gradlew.bat
  44. Jenkinsfile
  45. LICENSE
  46. NOTICE
  47. README
  48. README.md
  49. SECURITY.md
  50. settings.gradle.kts
  51. sqlline
  52. sqlline.bat
  53. sqlsh
  54. sqlsh.bat
README.md

Maven Central CI Status

Apache Calcite

Apache Calcite is a dynamic data management framework.

It contains many of the pieces that comprise a typical database management system but omits the storage primitives. It provides an industry standard SQL parser and validator, a customisable optimizer with pluggable rules and cost functions, logical and physical algebraic operators, various transformation algorithms from SQL to algebra (and the opposite), and many adapters for executing SQL queries over Cassandra, Druid, Elasticsearch, MongoDB, Kafka, and others, with minimal configuration.

For more details, see the home page.

The project uses JIRA for issue tracking. For further information, please see the JIRA accounts guide.