在嵌套列表中提取HIVE表的数据

时间:2018-06-27 02:06:32

标签: python scala list hive

我有一个配置单元表,数据如下:

enter image description here

我要以以下列表格式生成。

[15,'E11','-3','-3','-3','PKG1',['D1','V1','L1','STD1'],PKG2,['D2','V2','L2','STD2'],'M']
[16,'E11','-3','-3','-3','PKG1',['D7','V7','-3','-3'],PKG2,['D8','V8','-3','-3'],'M']
[17,'E11','D9','V9','-3','PKG3',['D10','V7','-3','-3'],-3,['-3','-3','-3','-3'],'M']

任何人都可以建议如何实现此目标吗?

0 个答案:

没有答案