Skip to content

Commit 670f4aa

Browse files
authored
Fix issue #1283 - Command line parsing issue for database and table in cur (#1284)
* Fix issue #1283 - Command line parsing issue for database and table in cur #1283 * Fix issue #1283 - Command line parsing issue for database and table in cur #1283 Limiting scope specific string case
1 parent b718651 commit 670f4aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cid/helpers/cur.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,10 @@ def find_cur(self, database: str=None, table: str=None):
299299
)
300300
if answer == '<CREATE CUR TABLE AND CRAWLER>':
301301
raise CidCritical('CUR creation was requested') # to be captured in common.py
302-
database, table = answer
302+
if isinstance(answer, str) and '.' in answer and len(answer.split('.')) == 2:
303+
database, table = answer.split('.')
304+
else:
305+
database, table = answer
303306
set_parameters({'cur-table-name': table,'cur-database': database, })
304307
return database, self.athena.get_table_metadata(table, database_name=database)
305308

0 commit comments

Comments
 (0)