[英]How can I make an Excel input in Pentaho Kettle with complex headers?
I have several Excel Model files like this: 我有几个这样的Excel模型文件:
| Name | Age | Class | Jump | Swim | Run | sex | | | | | | 100m | 500m | 1000m | 100m | 200m | 1000m | | ------------------------------------------------------------------------------- | Jim | | | | | | | | | | | ------------------------------------------------------------------------------- | Tom | | | | | | | | | | | ......
(Just a example,there is no other meanings,the real file is much more complex) (仅举一个例子,没有其他含义,实际文件要复杂得多)
Now i have to take the data and save them into database.What shall i do with the spoon? 现在我必须取数据并将其保存到数据库中。 When i create a Excel Input it cannot recognize all the column titles and cannot find subtitle.
创建Excel输入时,它无法识别所有列标题,也找不到字幕。
What shall i do with the spoon? 我要用勺子做什么? if Kettle cannot complete this task,is there any other tools that can finish it?(Java)
如果Kettle无法完成此任务,是否还有其他工具可以完成它?(Java)
Have your thought / or made a normalized relational data model for storing your data? 您是否考虑过/或已建立用于存储数据的规范化关系数据模型? Just moving a big complex data file from excel into one single table misses it's goal.
只是将大型复杂数据文件从excel中移到一个表中,就无法实现其目标。
Separate table for the entity 'person' and another for 'sport_results' etc etc. 实体“人”的单独表,以及“ sport_results”等的另一个表。
You can accomplish this by either: 您可以通过以下任一方法完成此操作:
In Excel adjust all the row header to a single row as in get rid of the subtitles and import the data in one way. 在Excel中,如摆脱字幕一样,将所有行标题调整为一行,并以一种方式导入数据。
Name
Age
Class
Jump
sex
run_100m
run_500m
run_1000m
swim_100m
swim_500m
swim_1000m
Or save the subtitled / sport result data in a separate excel file and use onther input step to import the different headers and merge the streams later 或将字幕/体育比赛结果数据保存在单独的excel文件中,并使用其他输入步骤导入不同的标题并在以后合并流
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.