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 now() plantime constification with BETWEEN #6491

Merged
merged 1 commit into from
Jan 24, 2024

Commits on Jan 24, 2024

  1. Fix now() plantime constification with BETWEEN

    Previously when using BETWEEN ... AND additional constraints in a
    WHERE clause, the BETWEEN was not handled correctly because it was
    wrapped in a BoolExpr node, which prevented plantime exclusion.
    The flattening of such expressions happens in `eval_const_expressions`
    which gets called after our constify_now code.
    This commit fixes the handling of this case to allow chunk exclusion to
    take place at planning time.
    Also, makes sure we use our mock timestamp in all places in tests.
    Previously we were using a mix of current_timestamp_mock and now(),
    which was returning unexpected/incorrect results.
    konskov committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    755ae7a View commit details
    Browse the repository at this point in the history