From 39ff346009eebee752cffe12e6de917214e790d9 Mon Sep 17 00:00:00 2001 From: Tom Baeyens Date: Wed, 11 Sep 2024 17:31:46 +0200 Subject: [PATCH] Removing the data source name lower case requirement (#2161) * Removing the data source name lower case requirement * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- soda/contracts/soda/contracts/impl/contract_data_source.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/soda/contracts/soda/contracts/impl/contract_data_source.py b/soda/contracts/soda/contracts/impl/contract_data_source.py index 99eb376a7..087d13f83 100644 --- a/soda/contracts/soda/contracts/impl/contract_data_source.py +++ b/soda/contracts/soda/contracts/impl/contract_data_source.py @@ -2,7 +2,6 @@ import importlib import logging -import re import textwrap from abc import ABC, abstractmethod @@ -90,10 +89,6 @@ def __init__(self, data_source_yaml_file: YamlFile): yaml_helper: yaml_helper = YamlHelper(yaml_file=data_source_yaml_file, logs=self.logs) self.type = yaml_helper.read_string(self.data_source_yaml_dict, self._KEY_TYPE) self.name = yaml_helper.read_string(self.data_source_yaml_dict, self._KEY_NAME) - if isinstance(self.name, str) and not re.match("[_a-z0-9]+", self.name): - self.logs.error( - f"Data source name must contain only lower case letters, numbers and underscores. Was {self.name}" - ) self.sql_dialect: SqlDialect = self._create_sql_dialect()