在使用運行 BigQuery Data Transfer Service 從 S3 提取資料時,我需要使用運行時引數在 URI 中提供當前月份和日期。
例子:s3://bucket/year=2022/month=6/day=6/*.json
我找不到個位數的月份。看起來我們只有個位數的天,但前面的空格使它不可用。請參考
%m
似乎涵蓋了月份的個位數。
SELECT PARSE_DATE('year=%Y/month=%m/day=%e', 'year=2022/month=6/day=6') AS uri_date;
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/490258.html