Преглед на файлове

HUE-8083 [dashboard] Make cases of column types insensitive

Now TIMESTAMP columns enable the timeline widget, same for the other types
Romain Rigaux преди 7 години
родител
ревизия
6f8e566
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/libs/notebook/src/notebook/dashboard_api.py

+ 1 - 1
desktop/libs/notebook/src/notebook/dashboard_api.py

@@ -222,7 +222,7 @@ class SQLDashboardApi(DashboardApi):
         'fields':
             dict([(col['name'], {
               'name': str(escape(col['name'])),
-              'type': str(col['type']),
+              'type': str(col['type']).lower(),
               'uniqueKey': col.get('primary_key') == 'true',
               # 'dynamicBase': False,
               'indexed': False,