简体   繁体   中英

I am getting "CREATE MODEL OPTIONS() format parameter is missing" error in BigQuery while creating a model?

I am getting this error "CREATE MODEL OPTIONS() format parameter is missing" while trying to create an ARIMA model and it seems to be telling me that I need to define a certain format parameter, but I don't understand which one exactly it is asking me to add.

I am using the following script:

CREATE MODEL forecast
OPTIONS (model_type = 'ARIMA_PLUS',
     time_series_timestamp_col='day',
     time_series_data_col='cost',
     auto_arima = TRUE,
     data_frequency = 'AUTO_FREQUENCY',
     decompose_time_series = TRUE) AS
SELECT
  FORMAT_DATE('%Y-%m-%d', date) as day,
  sum(net_cost) as cost
FROM ads_mif.logs_actual_footprint_cost_daily_raw
GROUP BY 1

'time_series_timestamp_col' must have a type of Timestamp, Date or DateTime, but instead has STRING type in query statement.

Remove the formatting of the date column.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM