Skip to content

Commit 4b37982

Browse files
committed
fix creator
1 parent 3a545cc commit 4b37982

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

text_2_sql/text_2_sql_core/src/text_2_sql_core/data_dictionary/data_dictionary_creator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ def __init__(
212212
excluded_entities = []
213213

214214
self.entities = entities
215-
self.excluded_entities = excluded_entities
216-
self.excluded_schemas = excluded_schemas
215+
self.excluded_entities = [x.lower() for x in excluded_entities]
216+
self.excluded_schemas = [x.lower() for x in excluded_schemas]
217217
self.single_file = single_file
218218
self.generate_definitions = generate_definitions
219219

@@ -428,8 +428,8 @@ async def extract_entities_with_definitions(self) -> list[EntityItem]:
428428
all_entities = [
429429
entity
430430
for entity in all_entities
431-
if entity.entity not in self.excluded_entities
432-
and entity.entity_schema not in self.excluded_schemas
431+
if entity.entity.lower() not in self.excluded_entities
432+
and entity.entity_schema.lower() not in self.excluded_schemas
433433
]
434434

435435
# Add warehouse and database to entities

0 commit comments

Comments
 (0)