public Row<T, K> execute(ResultSet rs) throws AvroBaseException, SQLException {
if (rs.next()) {
int schema_id = rs.getInt(1);
long version = rs.getLong(2);
AvroFormat format = AvroFormat.values()[rs.getByte(3)];
byte[] avro = rs.getBytes(4);
Schema schema = getSchema(schema_id);
if (schema != null) {
return new Row<T, K>(readValue(avro, schema, format), keytx.fromBytes(row), version);
} else {