superset icon indicating copy to clipboard operation
superset copied to clipboard

Unable to filter by dates in Dashboard.Throws ORA-01843: not a valid month

Open umesh11111 opened this issue 7 years ago • 5 comments

I have tried to create a dashboard which includes a date column. When I try to open the dashboard and select a filter which is a date column , it gives me ORA-01843: not a valid month error.

But when I try to take the query object and run in Oracle DB directly , it works well.

But if I run the same query in superset , it throws me error.

When I do the below modifications to the query it works : 1.Either add TO_DATE to the values selected .Example where sample_date in TO_DATE('10-10-2019','MM-DD-YYYY')

or

2.Add TO_CHAR to the column where TO_CHAR(sample_date,'MM-DD-YYYY) in ('10-10-2019')

Why is it like that.I am unable to perform any date comparisons

umesh11111 avatar Oct 16 '19 20:10 umesh11111

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.84. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Oct 16 '19 20:10 issue-label-bot[bot]

Please use the standard issue template, it helps the maintainers understand context around your issue. Details such as version number are very helpful information as resolution of certain bugs can be attributed to specific version numbers.

In your dashboard, please click Explore chart on the chart that is emitting the error message, and once in the Explore view, click on the upper right-hand menu and select View query and paste the contents here. Furthermore, please check the datatype of your temporal column and share that here.

villebro avatar Oct 17 '19 05:10 villebro

here are the screen shots for the issue image imag1

when im selecting any dates from filter box i am getting the error not a valid month

umesh11111 avatar Oct 17 '19 09:10 umesh11111

I have a hunch where the problem might be, but I seem to have misplaced my Oracle container so can't reproduce+fix+test right away. Will try to look into this in the coming days.

villebro avatar Oct 22 '19 18:10 villebro

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Dec 21 '19 18:12 stale[bot]