Bläddra i källkod

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

Now TIMESTAMP columns enable the timeline widget, same for the other types
Romain Rigaux 7 år sedan
förälder
incheckning
6f8e5665a4
1 ändrade filer med 1 tillägg och 1 borttagningar
  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,