From 046322c41be09b11bd7356306193a8c0de6f91b1 Mon Sep 17 00:00:00 2001 From: Miles Olson Date: Mon, 28 Oct 2024 13:01:23 -0700 Subject: [PATCH] Add potential SQL deprecation warning at Encoder instantiation time (#2974) Summary: We are considering deprecating SQLAlchechemy support in Ax due in large part to a perceived lack of usage by our OSS community. If you are using this feature please let us know as soon as possible via Github Issues. Reviewed By: lena-kashtelyan Differential Revision: D64781681 --- ax/storage/sqa_store/encoder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ax/storage/sqa_store/encoder.py b/ax/storage/sqa_store/encoder.py index 4f7fe21d098..5230573e37a 100644 --- a/ax/storage/sqa_store/encoder.py +++ b/ax/storage/sqa_store/encoder.py @@ -83,6 +83,11 @@ class Encoder: """ def __init__(self, config: SQAConfig) -> None: + logger.error( + "ATTENTION: The Ax team is considering deprecating SQLAlchemy storage. " + "If you are currently using SQLAlchemy storage, please reach out to us " + "via GitHub Issues here: https://github.com/facebook/Ax/issues/2975" + ) self.config = config @classmethod