"could not cast literal to type date" error when using `in the last` for a date field
See original GitHub issueDescription
I have a date field in my data model called date
. It’s been cast as a date in my .yaml
When I try to filter in the last
on this date field, it returns an error.
https://www.loom.com/share/88b1d1ea7b19407ea478c8c66df5c22c
I’m using the pages
explore in Lightdash Analytics
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
SQL CAST Function | BigQuery Syntax and Examples - Count
Could not cast literal to type DATE ... Check the format of your string when converting to a DATE. Remember it must be...
Read more >sql - Cast String into Date in BIGQUERY When Date is in the ...
I have a string that is a date and it is in M/D/YYYY ie: 1/1/2018 12/31/2018. I get an invalid date error (...
Read more >Bigquery — Error: Could not cast literal "***" to type DOUBLE
If you use SAFE_CAST, value will be null. But it does not raise error. SELECT SAFE_CAST('string' as float64) AS num. Question. What is ......
Read more >Conversion rules | BigQuery - Google Cloud
Literal conversion is evaluated at analysis time, and gives an error if the input literal cannot be converted successfully to the target type....
Read more >Google BigQuery CAST Functions 101: Syntax and Usage ...
One rule is that the string is numeric literal and should not pass the maximum precision or the BIGNUMERIC type range unless you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Snowflake works, tested agains snowflake staging db
BigQuery for now…and Snowflake? (if it’s a problem there too?)
I’m not sure I understand what you mean here?
Option 1: include today in the “in the last” filter. It should not be included if it’s
in the last
xcomplete days
though. For complete days, it should filter using option 3.