acryl-datahub 1.0.0.1rc2__py3-none-any.whl → 1.0.0.1rc3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of acryl-datahub might be problematic. Click here for more details.
- {acryl_datahub-1.0.0.1rc2.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/METADATA +2541 -2541
- {acryl_datahub-1.0.0.1rc2.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/RECORD +28 -26
- datahub/_version.py +1 -1
- datahub/emitter/rest_emitter.py +2 -2
- datahub/ingestion/graph/client.py +6 -11
- datahub/ingestion/source/common/subtypes.py +1 -1
- datahub/ingestion/source/mlflow.py +19 -1
- datahub/ingestion/source/snowflake/constants.py +1 -0
- datahub/ingestion/source/snowflake/snowflake_config.py +14 -1
- datahub/ingestion/source/snowflake/snowflake_query.py +17 -0
- datahub/ingestion/source/snowflake/snowflake_report.py +3 -0
- datahub/ingestion/source/snowflake/snowflake_schema.py +29 -0
- datahub/ingestion/source/snowflake/snowflake_schema_gen.py +112 -42
- datahub/ingestion/source/snowflake/snowflake_utils.py +25 -1
- datahub/ingestion/source/sql/mssql/job_models.py +15 -1
- datahub/ingestion/source/sql/mssql/source.py +8 -4
- datahub/ingestion/source/sql/stored_procedures/__init__.py +0 -0
- datahub/ingestion/source/sql/stored_procedures/base.py +242 -0
- datahub/ingestion/source/sql/{mssql/stored_procedure_lineage.py → stored_procedures/lineage.py} +1 -29
- datahub/ingestion/source/vertexai/vertexai.py +1 -1
- datahub/metadata/schema.avsc +2 -0
- datahub/metadata/schemas/Deprecation.avsc +2 -0
- datahub/metadata/schemas/MetadataChangeEvent.avsc +2 -0
- datahub/sql_parsing/split_statements.py +5 -1
- {acryl_datahub-1.0.0.1rc2.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/WHEEL +0 -0
- {acryl_datahub-1.0.0.1rc2.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/entry_points.txt +0 -0
- {acryl_datahub-1.0.0.1rc2.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/licenses/LICENSE +0 -0
- {acryl_datahub-1.0.0.1rc2.dist-info → acryl_datahub-1.0.0.1rc3.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import logging
|
|
1
2
|
import re
|
|
2
3
|
from enum import Enum
|
|
3
4
|
from typing import Iterator, List, Tuple
|
|
4
5
|
|
|
6
|
+
logger = logging.getLogger(__name__)
|
|
5
7
|
SELECT_KEYWORD = "SELECT"
|
|
6
8
|
CASE_KEYWORD = "CASE"
|
|
7
9
|
END_KEYWORD = "END"
|
|
@@ -120,7 +122,9 @@ class _StatementSplitter:
|
|
|
120
122
|
# Reset current_statement-specific state.
|
|
121
123
|
self.does_select_mean_new_statement = False
|
|
122
124
|
if self.current_case_statements != 0:
|
|
123
|
-
|
|
125
|
+
logger.warning(
|
|
126
|
+
f"Unexpected END keyword. Current case statements: {self.current_case_statements}"
|
|
127
|
+
)
|
|
124
128
|
self.current_case_statements = 0
|
|
125
129
|
|
|
126
130
|
def process(self) -> Iterator[str]:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|