فهرست منبع

HUE-2962 [editor] Fix setting of session-based properties for HS2 types

Jenny Kim 9 سال پیش
والد
کامیت
8d43f4f
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      desktop/libs/notebook/src/notebook/connectors/hiveserver2.py

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

@@ -521,10 +521,10 @@ class HS2Api(Api):
       settings = next((prop['value'] for prop in properties if prop['key'] == 'settings'), None)
 
     if not file_resources:
-      settings = next((prop['value'] for prop in properties if prop['key'] == 'files'), None)
+      file_resources = next((prop['value'] for prop in properties if prop['key'] == 'files'), None)
 
     if not functions:
-      settings = next((prop['value'] for prop in properties if prop['key'] == 'functions'), None)
+      functions = next((prop['value'] for prop in properties if prop['key'] == 'functions'), None)
 
     database = snippet.get('database') or 'default'