timifasubaa commented on a change in pull request #5267: [hive-csv] Infer 
schema from csv
URL: 
https://github.com/apache/incubator-superset/pull/5267#discussion_r197524685
 
 

 ##########
 File path: superset/db_engine_specs.py
 ##########
 @@ -973,12 +974,15 @@ def fetch_data(cls, cursor, limit):
     @staticmethod
     def create_table_from_csv(form, table):
         """Uploads a csv file and creates a superset datasource in Hive."""
-        def get_column_names(filepath):
-            with open(filepath, 'rb') as f:
-                return next(unicodecsv.reader(f, encoding='utf-8-sig'))
-
-        table_name = form.name.data
-        filename = form.csv_file.data.filename
+        def convert_to_hive_type(col_type):
+            """maps tableschema's types to hive types"""
+            if col_type == "number":
 
 Review comment:
   Agree. Added it to config

----------------------------------------------------------------
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