Skip to content

Commit

Permalink
Hot fix forecasting (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
xzdandy authored Sep 5, 2023
1 parent e535896 commit 83a017e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion evadb/binder/statement_binder.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _bind_create_function_statement(self, node: CreateFunctionStatement):
inputs, outputs = [], []
for column in all_column_list:
if column.name in predict_columns:
if node.udf_type != "Forecasting":
if node.function_type != "Forecasting":
column.name = column.name + "_predictions"
else:
column.name = column.name
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/integration_tests/long/test_model_forecasting.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def tearDownClass(cls):
@forecast_skip_marker
def test_forecast(self):
create_predict_udf = """
CREATE UDF Forecast FROM
CREATE FUNCTION Forecast FROM
(SELECT unique_id, ds, y FROM AirData)
TYPE Forecasting
PREDICT 'y';
Expand Down

0 comments on commit 83a017e

Please sign in to comment.