简体   繁体   English

AWS athena 结果集显示列的锯齿形值

[英]AWS athena resultset showing values zig zaged values for columns

I'm running a custom crawler in Aws to fetch the data from Data source and placing them in AWS Data Catalogue tables.我在 Aws 中运行自定义爬虫以从数据源获取数据并将它们放置在 AWS Data Catalog 表中。 After the crawler finishes its run and I query the table in Athena.爬虫完成运行后,我在 Athena 中查询表。 I can see that the values which should be coming under one column and moving to the next column in the resultset.我可以看到应该在一列下并移动到结果集中的下一列的值。 Is this the issue with Crawler which I'm running or the problem with Athena console?这是我正在运行的 Crawler 的问题还是 Athena 控制台的问题?

The reason that your columns are swapped is that there is a mismatch between the metadata and the underlying source-data.交换列的原因是元数据与基础源数据不匹配。 This is because the crawler observes more or fewer columns than it expects.这是因为爬虫观察到的列比它预期的要多或少。 Check if this is the case.检查是否是这种情况。

To clarify, a crawler does not move data but rather scans it to see what data types are there including columns/types.澄清一下,爬虫不会移动数据,而是扫描它以查看那里有哪些数据类型,包括列/类型。 The results in metadata which describes the data that exists in the data-source.元数据中的结果描述了数据源中存在的数据。 Athena can then use this metadata to query data from the source.然后 Athena 可以使用此元数据从源中查询数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM