Allow creating flat-map reader for non-supported key types
An instance of MapFlatSelectiveStreamReader is created regardless of whether
the underlying file uses flat-map encoding or not, hence, the constructor
should not throw when the key type of the map is not supported.
The failure will occur only if startStripe is called.
@@ -188,7 +188,8 @@ public class MapFlatSelectiveStreamReader
requiredLongKeys = null;
return;
default:
- throw new IllegalArgumentException("Unsupported flat map key type: " + keyOrcTypeKind);
+ requiredStringKeys = null;
+ requiredLongKeys = null;
}
}
}
