1) Is there a way in initialize() of a SerDe to know if it is being used as a Serializer or a Deserializer. If not, can i define the Serializer and Deserializer separately instead of defining a SerDe (so i have two initialize methods)?
2) Is there a way to find out which columns are being used? say if someone does select a,b,c from test, and my SerDe gets initialized for usage in that query how can i know that only a,b,c are being needed? i would like to take advantage of this information so i dont deserialize unnecessary information, without having to resort to more complex lazy deserialization tactics.