Skip to content

Invalid parameters on scheduled query date range #7710

Description

@DEZwak

Issue Summary

Any time there is a date range parameter on query, the error message appears in the log/email alerts like this

Unable to update hash for query # because of invalid parameters: The following parameter values are incompatible with their definitions: date_range
Could not enqueue query # due to InvalidParameterError('The following parameter values are incompatible with their definitions: date_range')

The data itself seemingly still refreshes correctly, but we get email spammed/the log grows when we have a bunch of queries with date range parameters. This is possibly related to #6683

Steps to Reproduce

  1. Make a query with a date range parameter (preferably a dynamic one like "Last 7 Days"):
SELECT
   *
FROM
	table
WHERE
 "date" >= '{{ date_range.start }}' AND "date" < '{{ date_range.end }}'
GROUP BY
    "date"
  1. Watch logs as it complains that the date_range is invalid.

I did notice from upgrading from v10.1.0 up to v26.3 that I got the same message when running any migration upgrades.

Technical details:

  • Redash Version: v26.3.0
  • Browser/OS: Ubuntu 24.04
  • How did you install Redash: Docker Compose from git pull and migrated v10 database over/upgraded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions