Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support conversion of STRING to BIGINT for window bounds #4500

Merged

Conversation

big-andy-coates
Copy link
Contributor

Description

Fixes: #4482

Comparison and Between expressions in the WHERE clause already support magic conversion from a STRING containing a ISO formatted datetime into a BIGINT for the ROWTIME column.

This changes extends the support to cover the WINDOWSTART and WINDOWEND columns.

The change also fixes a bug where by a numeric Between expression on ROWTIME resulted in a class-cast exception, e.g. WHERE ROWTIME < 123546794894.

Testing done

tests added.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

Fixes: confluentinc#4482

Comparison and Between expressions in the WHERE clause already support magic conversion from a STRING containing a ISO formatted datetime into a BIGINT for the `ROWTIME` column.

This changes extends the support to cover the `WINDOWSTART` and `WINDOWEND` columns.

The change also fixes a bug where by a numeric Between expression on `ROWTIME` resulted in a class-cast exception, e.g. `WHERE ROWTIME < 123546794894`.
Copy link
Contributor

@agavra agavra left a comment

Choose a reason for hiding this comment

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

LGTM!

@big-andy-coates big-andy-coates merged commit 9c3cbf8 into confluentinc:master Feb 10, 2020
@big-andy-coates big-andy-coates deleted the magic_window_bounds branch February 10, 2020 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WINDOWSTART doesn't work in push query predicate
2 participants