[英]How to fetch the column count from dat file in Azure data lake analytics files
I have different Dat
and CSV
files. 我有不同的
Dat
和CSV
文件。 it's containing more than 255 columns and delimiter as '|' 它包含超过255列,并以'|'作为分隔符 and tab.
和标签。 How to fetch the column count.
如何获取列数。 Anyone please share sample
U-Sql
code 任何人都请共享示例
U-Sql
代码
I know this was down voted, so I hope it is still OK to supply an answer (although I'm not including a code sample). 我知道这是投反对票,因此我希望提供答案还是可以的(尽管我不包括代码示例)。
Extract just the first row in your file (using FETCH 1 ROWS) into a single column rowset. 仅将文件中的第一行(使用FETCH 1 ROWS)提取到单列行集中。 You should then be able to use String.Split to get a column count.
然后,您应该可以使用String.Split来获取列数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.