presto-main/src/main/java/io/prestosql/operator/aggregation/state/StateCompiler.java/StateField/getSqlType
class StateField:        Type getSqlType()
        {
            if (!sqlType.isPresent()) {
                throw new IllegalArgumentException("Unsupported type: " + type);
            }
            return sqlType.get();
        }