admin管理员组文章数量:1289836
I am trying to read a csv and excel using Apache Spark with inferschema = True.
For CSV I am using Spark Core Read API Function (spark.read.format('csv')).
For Excel I am using spark-excel jar (spark.read.format('excel')).
In Both CSV & Excel File, I am having a time only column (HH:MM:SS) (Ex: 12:18:34)
When I tried to read csv, I am getting the df with timestamp column of data like (2025-02-19 12:18:34)
In excel read, I am getting the df like (1899-12-31 12:18:34)
Why this issue happens and is there a way to overcome this while having the inferschema = True option.
本文标签: excelApache Spark time only column issueStack Overflow
版权声明:本文标题:excel - Apache Spark time only column issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741481510a2381199.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论