You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@superset.apache.org by gi...@git.apache.org on 2017/09/27 17:34:15 UTC

[GitHub] mistercrunch commented on a change in pull request #3533: Latest import csv

mistercrunch commented on a change in pull request #3533: Latest import csv
URL: https://github.com/apache/incubator-superset/pull/3533#discussion_r141405353
 
 

 ##########
 File path: superset/db_engine_specs.py
 ##########
 @@ -686,6 +790,41 @@ def fetch_result_sets(cls, db, datasource_type, force=False):
         return BaseEngineSpec.fetch_result_sets(
             db, datasource_type, force=force)
 
+    @staticmethod
+    def upload_csv(form):
+        def get_column_names(filepath):
+            import csv
+            with open(filepath, "rb") as f:
+                return csv.reader(f).next()
+
+        table_name=form.name.data
+        file_name = form.csv_file.data.filename
+        print(results_backend)
 
 Review comment:
   nope
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services