Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
index-git committed Sep 21, 2023
1 parent 81ad265 commit 3524a28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/layman/layer/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def parse_and_validate_external_table_uri_str(external_table_uri_str):
if unsafe_column_names:
raise LaymanError(2, {
'parameter': 'external_table_uri',
'message': 'Expected table with all column names mathing regular expression ' + SAFE_PG_IDENTIFIER_PATTERN,
'message': 'Expected table with all column names matching regular expression ' + SAFE_PG_IDENTIFIER_PATTERN,
'found': {
'external_table_uri': external_table_uri_str,
'schema': schema,
Expand Down
2 changes: 1 addition & 1 deletion src/layman/layer/util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def test_parse_external_table_uri_str(external_table_uri_str, exp_result):
'code': 2,
'data': {
'parameter': 'external_table_uri',
'message': 'Expected table with all column names mathing regular expression ^[a-zA-Z_][a-zA-Z_0-9]*$',
'message': 'Expected table with all column names matching regular expression ^[a-zA-Z_][a-zA-Z_0-9]*$',
'found': {
'external_table_uri': 'postgresql://docker:docker@postgresql:5432/external_test_db?schema=schema_name&table=table_with_unsafe_column_name&geo_column=geo_wkb_column',
'schema': 'schema_name',
Expand Down

0 comments on commit 3524a28

Please sign in to comment.