Create Athena table from nested json source

前端 未结 2 1593
予麋鹿
予麋鹿 2021-01-07 06:35

How shall I create a Athena table from the nested json file ? This is my sample json file. I only need selected key value pairs like roofcondition and garagestalls.

2条回答
  •  一向
    一向 (楼主)
    2021-01-07 07:19

    So it seems that this also works (not a valid json )!

    Every raw of the table is one line in the json file.

    No spaces no comma at the end of line (just new line between table raws).

     {"is_active":"True","title":"mr","first_name":"admindoc","last_name":"admindoc","birthdate":"2003-09-01","home_phone":"+654654","mobile_phone":"+654654","gender":"m","language":"fr","email":"xxx+admine@sinnovation.com"}
     {"is_active":"True","title":"mr","first_name":"dok","last_name":"dok","birthdate":"1998-02-03","home_phone":"None","mobile_phone":"+654654","gender":"m","language":"fr","email":"xxx+docteur@sinnovation.com"}
    

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题