Browse Source

HUE-8311 [assist] Sample data is missing for rdbms databases (#697)

Ivan Dzikovsky 7 years ago
parent
commit
0370871a3e

+ 0 - 1
desktop/libs/librdbms/src/librdbms/server/rdbms_base_lib.py

@@ -30,7 +30,6 @@ class BaseRDBMSDataTable(object):
     else:
       self.columns_description = [{'name': col} for col in columns]
       self.columns = columns
-    self.columns_description = columns
     self.next = None
     self.startRowOffset = 0
     self.fetchSize = 1000

+ 1 - 0
desktop/libs/notebook/src/notebook/connectors/rdbms.py

@@ -163,6 +163,7 @@ class RdbmsApi(Api):
     if sample_data:
       response['status'] = 0
       response['headers'] = sample_data.columns
+      response['full_headers'] = sample_data.columns_description
       response['rows'] = list(sample_data.rows())
     else:
       response['message'] = _('Failed to get sample data.')