john-bodley commented on a change in pull request #5268: [hive-csv] specify 
hive namespace for tables
URL: 
https://github.com/apache/incubator-superset/pull/5268#discussion_r197327557
 
 

 ##########
 File path: superset/db_engine_specs.py
 ##########
 @@ -978,6 +978,14 @@ def get_column_names(filepath):
                 return next(unicodecsv.reader(f, encoding='utf-8-sig'))
 
         table_name = form.name.data
+        if config.get('UPLOADED_CSV_HIVE_NAMESPACE'):
+            if  '.' in table_name:
+                raise Exception(
+                    """You can't specify a namespace. """
 
 Review comment:
   If you’re going to use “”” which reprsents a multiline string then make the 
string multiline. It’s probably more desirable to use single quoted strings and 
wrap either via \ or encapsulate in ().

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to