我正在尝试运行一个Google BQ查询,该查询返回多少人已转换但未针对健康营销活动进行转换,但什么也没有返回
ble that has a list of patient ids with a column of their times and whether they converted or not. I thought I cracked where I'm I going wrong?
这是一些示例数据 [![在此处输入图片描述] [1]] [1]
答案 0 :(得分:1)
一个明显的问题是:
TIMESTAMP_MICROS(event_time) BETWEEN timestamp_micros(2017-01-01) AND timestamp_micros(2017-12-26)
我推测您想要
TIMESTAMP_MICROS(event_time) BETWEEN TIMESTAMP('2017-01-01') AND TIMESTAMP('2017-12-26')
表达式2017-01-01
的计算结果为2015
,通常这不是一个非常有趣的毫秒数。
答案 1 :(得分:0)
我将从查看您的WHERE语句开始,该语句需要在日期和字符串等周围加上引号。
2018-08-03 01:00:32,218 [main] ERROR com.enfs.audit.process.FundGroupVsCommunicatorAudit [201] - SYSUSER:[26]:org/ehcache/config/Builder
java.lang.NoClassDefFoundError: org/ehcache/config/Builder
at com.enfs.common.db.util.EntityManagerBinder.<clinit>(EntityManagerBinder.java:165)
at com.enfs.clarity.dao.hibernate.PersistenceServiceHibernateImpl.<clinit>(PersistenceServiceHibernateImpl.java:95)
at com.enfs.clarity.dao.hibernate.ClientFundGroupImpl.getAllClientFundGroupList(ClientFundGroupImpl.java:131)
at com.enfs.audit.process.FundGroupVsCommunicatorAudit.retrieveClientFundGroupList(FundGroupVsCommunicatorAudit.java:122)
您还需要查看数据质量,例如“ first_campain”缺少“ g”。