|
3 | 3 | import os |
4 | 4 | import pathlib |
5 | 5 | import sys |
6 | | -import time |
7 | 6 | import typing as t |
| 7 | +import time |
8 | 8 | from contextlib import contextmanager |
9 | | -from dataclasses import dataclass |
10 | 9 |
|
11 | 10 | import pandas as pd # noqa: TID253 |
12 | 11 | import pytest |
13 | | -from _pytest.mark import MarkDecorator |
14 | | -from _pytest.mark.structures import ParameterSet |
15 | 12 | from sqlglot import exp, parse_one |
16 | 13 | from sqlglot.optimizer.normalize_identifiers import normalize_identifiers |
17 | 14 |
|
18 | | -import sqlmesh.core.dialect as d |
19 | 15 | from sqlmesh import Config, Context, EngineAdapter |
20 | 16 | from sqlmesh.core.config import load_config_from_paths |
21 | 17 | from sqlmesh.core.config.connection import AthenaConnectionConfig |
22 | 18 | from sqlmesh.core.dialect import normalize_model_name |
23 | | -from sqlmesh.core.engine_adapter import AthenaEngineAdapter, SparkEngineAdapter, TrinoEngineAdapter |
| 19 | +import sqlmesh.core.dialect as d |
| 20 | +from sqlmesh.core.engine_adapter import SparkEngineAdapter, TrinoEngineAdapter, AthenaEngineAdapter |
24 | 21 | from sqlmesh.core.engine_adapter.shared import DataObject |
25 | 22 | from sqlmesh.core.model.definition import SqlModel, load_sql_based_model |
26 | 23 | from sqlmesh.utils import random_id |
27 | 24 | from sqlmesh.utils.date import to_ds |
28 | 25 | from sqlmesh.utils.pydantic import PydanticModel |
29 | 26 | from tests.utils.pandas import compare_dataframes |
| 27 | +from dataclasses import dataclass |
| 28 | +from _pytest.mark import MarkDecorator |
| 29 | +from _pytest.mark.structures import ParameterSet |
30 | 30 |
|
31 | 31 | if t.TYPE_CHECKING: |
32 | 32 | from sqlmesh.core._typing import TableName, SchemaName |
@@ -658,7 +658,7 @@ def get_column_comments( |
658 | 658 | query = f""" |
659 | 659 | SELECT |
660 | 660 | col.COLUMN_NAME column_name, |
661 | | - CAST(ep.value AS NVARCHAR(MAX)) comment |
| 661 | + CAST(ep.value AS NVARCHAR(MAX)) comment |
662 | 662 | FROM INFORMATION_SCHEMA.COLUMNS col |
663 | 663 | CROSS APPLY fn_listextendedproperty('MS_Description', 'schema', col.TABLE_SCHEMA, '{kind}', col.TABLE_NAME, 'column', col.COLUMN_NAME) ep |
664 | 664 | WHERE col.TABLE_SCHEMA = '{schema_name}' AND col.TABLE_NAME = '{table_name}' |
|
0 commit comments