Matt Fysh
02/23/2023, 11:55 AM胡俊涛(Juntao Hu)
02/24/2023, 3:12 AMenv.add_jar , then you can create a java schema at python side and wrap it into DeserializationSchema , e.g. DeserializationSchema(get_gateway().jvm.xxx.GzipDeserializationSchema()) .Matt Fysh
02/25/2023, 12:58 AM胡俊涛(Juntao Hu)
02/27/2023, 7:44 AMDeserializationSchema that keep the byte[] message as it is, then you can do decompression on those bytes at Python side. Although you can get a byte[] serializer by TypeInformationSerializationSchema(BYTE_PRIMITIVE_ARRAY_TYPE_INFO, ec) , but it’s length-prefix.