Presto - static date and timestamp in where clause

前端 未结 2 915
悲&欢浪女
悲&欢浪女 2021-02-03 17:58

I\'m pretty sure the following query used to work for me on Presto:

select segment, sum(count)
from modeling_trends
where segment=\'2557172\' and date = \'2016-0         


        
2条回答
  •  情书的邮戳
    2021-02-03 18:38

    Just a quick thought.. have you tried omitting the dashes in your date? try 20160623 instead of 2016-06-23.

    I encountered something similar with SQL server, but not used Presto.

提交回复
热议问题