You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql_query_=f"SEL count(*) AS N FROM {fs_config.feature_catalog} WHERE UPPER(data_domain) = '{data_domain.upper()}' AND ENTITY_NAME = '{entity.upper()}'"
530
-
logger.info(f"{sql_query_}")
531
-
result=tdml.execute_sql(sql_query_)
532
-
logger.info(f"{result}")
533
-
ifresult.fetchall()[0][0] >0:
534
-
fs_config.entity=entity
535
-
returnformat_text_response(f"Feature store config updated: {fs_config.dict(exclude_none=True)}")
501
+
) ->td.FeatureStoreConfig:
502
+
with_tdconn.engine.connect() asconn:
503
+
returnfs_config.fs_setFeatureStoreConfig(
504
+
conn=conn,
505
+
db_name=db_name,
506
+
data_domain=data_domain,
507
+
entity=entity,
508
+
)
536
509
537
510
@mcp.tool(description="Display the current feature store configuration (database and data domain).")
0 commit comments