Skip to content

Commit

Permalink
fix the regex to match
Browse files Browse the repository at this point in the history
  • Loading branch information
buremba committed Feb 7, 2025
1 parent 8c5596e commit fad6f03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .env.act

This file was deleted.

2 changes: 1 addition & 1 deletion universql/warehouse/duckdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_identifier(is_quoted):
if table_exists[0] is None:
return TableType.LOCAL

match = re.search(r"CREATE VIEW (?:[\"\w]+\.)?[\w.]+ AS SELECT \* FROM iceberg_scan\('([a-zA-Z]+://[^\']+)'\);",
match = re.search(r"CREATE VIEW (?:["']?[\w]+\.){1,3}[\w]+ AS SELECT \* FROM iceberg_scan\((['"])([a-zA-Z0-9+.-]+:\/\/[a-zA-Z0-9\/_.-]+)\1\);",
table_exists[0])
if match is not None:
return TableType.ICEBERG
Expand Down

0 comments on commit fad6f03

Please sign in to comment.