我有PostgreSQL to_date()函數的問題,在我提到的代碼中,我得到語法錯誤但找不到where。 SELECT * from crosstab('select upit, sat, count(*) as broj
from upiti
where datum >= to_date('26-10-2014','DD-MM-YYYY') A
我在我的輸入中有datetime數據,並想從Pig中正確加載它。我搜索了一下,知道它建議加載爲chararray,然後使用ToDate函數轉換爲datetime。但是,相同的腳本適用於一種輸入,但不適用於另一種輸入,具有相同的數據格式。我的豬版本是0.12.1。我使用的腳本: A = load '/user/ss/debug/debug' using PigStorage(',') as (AUD