我有一个名为details的表,其中有两列,一列是ID,另一列是DETAILS.DETAILS列具有json,如下所示:
{
"name": [
{
"name": [
"Anu "
],
"family": [
"Nandi"
]
}
],
"gender": "male",
"address": [
{
"city": "Chennai ",
"state": "TAMIL NADU",
"postalCode": "*******"
}
],
"phone": [
{
"value": "9751991231"
}
],
"birthDate": "1994-01-18",
"maritalStatus": {
"status": "Unmarried"
}
}
我想将这张表作为json格式导入到HDFS中,但是由于数据保密性,我想放弃姓名,地址和电话号码,也希望将人们的生日增加30年。谁能建议我该怎么做。我仅在编写查询部分时需要帮助。