Skip to content

Commit

Permalink
added warning of deprecation of transform file
Browse files Browse the repository at this point in the history
  • Loading branch information
dimberman committed Mar 4, 2022
1 parent 6a90e22 commit 523be8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/astro/sql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
import warnings
from typing import Callable, Iterable, List, Mapping, Optional, Union

from astro.sql.operators.agnostic_aggregate_check import aggregate_check
Expand Down Expand Up @@ -63,6 +64,10 @@ def transform_file(
warehouse: Optional[str] = None,
output_table: Table = None,
):
warnings.warn(
"astro.sql.transform_file is now deprecated and will be taken out in version 1.0. Please use astro.sql.render instead"
)

def transform_file():
return sql

Expand Down

0 comments on commit 523be8b

Please sign in to comment.