本文介绍了获取元数据结构问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,

只要数据集是已定义的数据集,我们就会在Get元数据活动中获取文件中的结构:意味着文件路径和文件是明确指定的。

We get the structure within the file in Get meta data activity whenever the dataset is a defined dataset: meaning the file path and the file is specified explicitly.

但是当我们如下所示使数据集动态化时,我们无法获得文件结构。

But when we make the dataset dynamic as shown below,we do not get the file structure.

问题:

这是一个已知问题,还是我需要做一些额外的修改才能获得结构?

So is this a known issue or do I need to make some additional modifications to get the structure?

推荐答案

结构参数用于自动检测特定数据集中的列。因此,无论您使用固定路径还是动态路径,理想情况下都应该看到如下内容:

Structure parameter is used to auto-detect the columns in a particular dataset. Hence, irrespective of whether you use a fixed path or a dynamic path, you should ideally see something like this :

" structure":[{" name":" description"," type":" String" },{" name":" industry"," type":" String"
},{" name":" level"," type":" String" },{" name":" size"," type":" String" },{" name":" linecode"," type":" String" },{" name":
" value"," type":" String" }]

唯一的东西影响get元数据活动的输出位于数据集中。其中一些因素包括:


  • 数据集的第一行(在你的情况下是文件)。
  • 用于分隔列的分隔符。
  • 用于分隔行的分隔符。

因此,为了获得一致的输出,我建议您在数据集中配置这些设置。一种简单的方法是点击"检测文本格式"。按钮,自动检测所有设置,然后单击"预览
数据"按钮确保设置正常。请参阅下面的屏幕截图以供参考:

Hence, to get consistent output, I would recommend you to configure these settings in your datasets. An easy way to do so is by clicking on "Detect Text Format" button which automatically detects all the settings and then by clicking "Preview Data" to make sure the settings are fine. Please see below screenshot for reference :

希望这会有所帮助。


这篇关于获取元数据结构问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 15:22