I have a Hive table partitioned by date(e.g. 20150730)
Furthermore, I created a hive query which consumes today's partition date and the most recent previous partition date which is not necessary to be yesterday. (e.g. 20150730 and 20150728)
I want to use oozie to execute this hive query daily, but how can I find the previous partition date? (again the previous proportional date is unpredictable)
答案 0 :(得分:0)
在链接中回答了同样的问题。 Hive Data selecting latest value based on timestamp
请检查,您可能需要在提及示例中应用一些修改。
正如你所说,日期是不可预测的,但相信它应该是格式
你也可以试试像
self.numlabel.text = @"2";
即使它没有预测,这些也会给你以前的日期......