Skip to content

Conversation

@ahkcs
Copy link
Contributor

@ahkcs ahkcs commented Oct 31, 2025

Description


Summary

This PR adds clear error handling and documentation for the known limitation that the bins parameter on timestamp fields requires pushdown to be enabled.

Related Issues

@ahkcs ahkcs force-pushed the bins_time branch 2 times, most recently from 8e60c28 to a8cafb8 Compare November 3, 2025 19:07
…d fields with pushdown disabled

Signed-off-by: Kai Huang <[email protected]>
@ahkcs ahkcs changed the title Fix bins on time-related fields Enhance doc and error message handling for bins on time-related fields Nov 5, 2025
Signed-off-by: Kai Huang <[email protected]>
@ahkcs
Copy link
Contributor Author

ahkcs commented Nov 5, 2025

unit tests in CI seems flaky


// Create validated binnable field (validates that field is numeric or time-based)
// Note: bins parameter works with both numeric and time-based fields
// Note: bins parameter on time-based fields requires pushdown to be enabled
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Describe the default behavior and the configuration that controls pushdown.

@yuancu yuancu added the enhancement New feature or request label Nov 6, 2025
"Expected clear error message about bins parameter not supported on timestamp fields when "
+ "pushdown is disabled, but got: "
+ errorMessage,
errorMessage.contains(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although we enabled push down, we still don't support query like source=events_null | bin @timestamp bins=3.

Shall we call out that it's also required to be used as the aggregation bucket field?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants