浏览代码

HUE-5746 [editor] Extension missing when download result from a saved query

Romain Rigaux 8 年之前
父节点
当前提交
15330bebce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

@@ -352,7 +352,7 @@ class HS2Api(Api):
       # Test handle to verify if still valid
       db.fetch(handle, start_over=True, rows=1)
 
-      file_name = _get_snippet_name(notebook)
+      file_name = '%s.%s' % (_get_snippet_name(notebook), format)
 
       return data_export.download(handle, format, db, id=snippet['id'], file_name=file_name)
     except Exception, e: