Description
Tableau provides an option to choose a time period representing the current month,

which results in auto-generated SQL of the form,
TIMESTAMPADD(MONTH,0,...)
which results in Druid throwing an error per here of the form,
Unknown exception (java.lang.IllegalArgumentException): zero period is not acceptable in PeriodGranularity!
Granted adding a zero period is atypical, but I was wondering why this should be an error (the check was introduced in #3644). For reference MySQL et al. support having a zero period,
mysql> SELECT TIMESTAMPADD(MONTH,0,'2020-10-24');
+------------------------------------+
| TIMESTAMPADD(MONTH,2,'2020-10-24') |
+------------------------------------+
| 2020-10-24 |
+------------------------------------+
1 row in set (0.00 sec)
Motivation
Please provide the following for the desired feature or change:
- The
TIMESTAMPADD should allow for an zero interval to ensure applications like Tableau are functional.
Description
Tableau provides an option to choose a time period representing the current month,
which results in auto-generated SQL of the form,
TIMESTAMPADD(MONTH,0,...)which results in Druid throwing an error per here of the form,
Granted adding a zero period is atypical, but I was wondering why this should be an error (the check was introduced in #3644). For reference MySQL et al. support having a zero period,
Motivation
Please provide the following for the desired feature or change:
TIMESTAMPADDshould allow for an zero interval to ensure applications like Tableau are functional.