dengzhhu653 commented on code in PR #3605:
URL: https://github.com/apache/hive/pull/3605#discussion_r990886989
##########
ql/src/java/org/apache/hadoop/hive/ql/exec/SerializationUtilities.java:
##########
@@ -830,13 +853,17 @@ public static byte[]
serializeObjectWithTypeInformation(Serializable object) {
/**
* Deserializes expression from Kryo.
* @param bytes Bytes containing the expression.
+ * @param isPartFilter ture if it is a partition filter
* @return Expression; null if deserialization succeeded, but the result
type is incorrect.
*/
- public static <T> T deserializeObjectWithTypeInformation(byte[] bytes) {
- Kryo kryo = borrowKryo();
+ public static <T> T deserializeObjectWithTypeInformation(byte[] bytes,
+ boolean isPartFilter) {
+ KryoWithHooks kryo = (KryoWithHooks) borrowKryo();
+ kryo.setExprNodeFirst(isPartFilter);
try (Input inp = new Input(new ByteArrayInputStream(bytes))) {
return (T) kryo.readClassAndObject(inp);
} finally {
+ kryo.setExprNodeFirst(false);
Review Comment:
sure
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]