How does Hive stores data and what is SerDe?

后端 未结 4 1185
执笔经年
执笔经年 2021-02-04 12:50

when querying a table, a SerDe will deserialize a row of data from the bytes in the file to objects used internally by Hive to operate on that row of data. when

4条回答
  •  暖寄归人
    2021-02-04 13:31

    Hive can analyse semi structured and unstructured data as well by using (1) complex data type(struct,array,unions) (2) By using SerDe

    SerDe interface allow us to instruct hive as to how the record should be processed. Serializer will take java object that hive has been working on,and convert it into something that hive can store and Deserializer take binary representation of a record and translate into java object that hive can manipulate.

提交回复
热议问题