Date Filter (All Options) issue in native query

My dashboard filter on date uses ‘All Options’. I have a SQL Native query question which fails when I filter using any of the date filter options. I see multiple options in native query question filter to set but none of them is ‘All options’. Any suggestions?
Below is the error screenshot

Hi @jiwnaiakbar
Please post “Diagnostic Info” from Admin > Troubleshooting.
And which database you’re querying.
And the query.

Metabase Application Database - Postgresql
Source Database -SQL Server
“browser-info”: {
“language”: “en-US”,
“platform”: “Win32”,
“userAgent”: “Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:79.0) Gecko/20100101 Firefox/79.0”,
“vendor”: “”
“system-info”: {
“file.encoding”: “Cp1252”,
“”: “Java™ SE Runtime Environment”,
“java.runtime.version”: “1.8.0_251-b08”,
“java.vendor”: “Oracle Corporation”,
“java.vendor.url”: “”,
“java.version”: “1.8.0_251”,
“”: “Java HotSpot™ 64-Bit Server VM”,
“java.vm.version”: “25.251-b08”,
“”: “Windows Server 2016”,
“os.version”: “10.0”,
“user.language”: “en”,
“user.timezone”: “Asia/Calcutta”
“metabase-info”: {
“databases”: [
“hosting-env”: “unknown”,
“application-database”: “postgres”,
“application-database-details”: {
“database”: {
“name”: “PostgreSQL”,
“version”: “12.3”
“jdbc-driver”: {
“name”: “PostgreSQL JDBC Driver”,
“version”: “42.2.8”
“run-mode”: “prod”,
“version”: {
“tag”: “v0.36.0”,
“date”: “2020-07-21”,
“branch”: “release-0.36.x”,
“hash”: “b31049f”
“settings”: {
“report-timezone”: “Asia/Calcutta”

@jiwnaiakbar You should upgrade - latest release is 0.36.3
I have no idea what your query looks like, and I’m guess that you’re incorrectly using Field Filters:

1 Like

@jiwnaiakbar You are missing spaces between the AND and the variable.

1 Like

Worked. Thnx a lot @flamber :slight_smile: