Browse Source

[beeswax] sorting the tables

ayush.goyal 4 years ago
parent
commit
c145448706
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apps/beeswax/src/beeswax/server/hive_server2_lib.py

+ 1 - 0
apps/beeswax/src/beeswax/server/hive_server2_lib.py

@@ -1524,6 +1524,7 @@ class HiveServerClientCompatible(object):
           'type': table['TABLE_TYPE'].capitalize()
           'type': table['TABLE_TYPE'].capitalize()
         }
         }
       )
       )
+    massaged_tables = sorted(massaged_tables, key=lambda table_: table_['name'])
     return massaged_tables
     return massaged_tables