Przeglądaj źródła

[metastore] Avoid using tinyints when guessing the type of columns

Using smallints as less a problem if wrong.
Romain Rigaux 10 lat temu
rodzic
commit
f25fbd9

+ 1 - 1
apps/beeswax/src/beeswax/templates/define_columns.mako

@@ -329,7 +329,7 @@ ${ layout.metastore_menubar() }
               var _bytes = Math.ceil((Math.log(_val)/Math.log(2))/8);
               switch (_bytes){
                 case 1:
-                  _foundType = "tinyint";
+                  _foundType = "smallint";
                   break;
                 case 2:
                   _foundType = "smallint";