Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -569,19 +569,6 @@ public void testInformationSchema() throws SQLException {
Collections.singleton(
"IOTDB-THRIFT-SINK,Builtin,org.apache.iotdb.commons.pipe.agent.plugin.builtin.connector.iotdb.thrift.IoTDBThriftConnector,null,"));

TestUtils.assertResultSetEqual(
statement.executeQuery(
"select model_id from information_schema.models where model_type = 'BUILT_IN_FORECAST'"),
"model_id,",
new HashSet<>(
Arrays.asList(
"_STLForecaster,",
"_NaiveForecaster,",
"_sundial,",
"_HoltWinters,",
"_ExponentialSmoothing,",
"_ARIMA,")));

TestUtils.assertResultSetEqual(
statement.executeQuery(
"select distinct(function_type) from information_schema.functions"),
Expand Down Expand Up @@ -694,19 +681,6 @@ public void testInformationSchema() throws SQLException {
Collections.singleton(
"test,view_table,CREATE VIEW \"view_table\" (\"tag1\" STRING TAG,\"tag2\" STRING TAG,\"s11\" INT32 FIELD,\"s3\" INT32 FIELD FROM \"s2\") RESTRICT WITH (ttl=100) AS root.\"a\".**,"));

TestUtils.assertResultSetEqual(
statement.executeQuery(
"select model_id from information_schema.models where model_type = 'BUILT_IN_FORECAST'"),
"model_id,",
new HashSet<>(
Arrays.asList(
"_sundial,",
"_STLForecaster,",
"_NaiveForecaster,",
"_HoltWinters,",
"_ARIMA,",
"_ExponentialSmoothing,")));

TestUtils.assertResultSetEqual(
statement.executeQuery(
"select distinct(function_type) from information_schema.functions"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def download_built_in_model_if_necessary(model_id: str, local_dir):
"""
Download the built-in model from HuggingFace repository when necessary.
"""
if "_timer" == model_id or "_sundial" == model_id:
if "timer" in model_id or "sundial" in model_id:
weights_path = os.path.join(local_dir, "model.safetensors")
if not os.path.exists(weights_path):
logger.info(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public class ModelInfo implements SnapshotProcessor {
builtInForecastModel.add("_STLForecaster");
builtInForecastModel.add("_HoltWinters");
builtInForecastModel.add("_ExponentialSmoothing");
builtInForecastModel.add("_timerxl");
builtInForecastModel.add("_sundial");
builtInAnomalyDetectionModel.add("_GaussianHMM");
builtInAnomalyDetectionModel.add("_GMMHMM");
Expand Down
Loading