Loading json with varying schema into PIG

前端 未结 1 1349
独厮守ぢ
独厮守ぢ 2021-01-05 17:03

I ran into an issue loading a set json documents into PIG. What I have is a lot of json documents that all vary in the fields they have, the fields that I need are in most d

相关标签:
1条回答
  • 2021-01-05 17:28

    I think this is a known issue with even the latest version of Pig, so there isn't an easy way around this other than to use a more capable JsonLoader.

    Use the Elephant Bird JSONLoader instead which will behave the way you expect - in other words respect field ordering.

    0 讨论(0)
提交回复
热议问题