Fix QueryAsDataTable can't read Excel with only header rows - #647
Merged
Conversation
shps951023
approved these changes
Aug 13, 2024
Member
|
@izanhzh 👍👍 Merged! |
|
你这个又引发另外一个问题,如果csv 的表头有10列,内容只有8列,就会报错列9找不到,以前版本不会,找不到的列,你就填空别~ |
Member
Author
正常格式的CSV,表头和内容的列数是一致的,如果是用逗号作为分隔符,应该是类似这样: 1,2,3,4,5,6,7,,,10 |
pull Bot
pushed a commit
to zilo555/MiniExcel
that referenced
this pull request
Aug 29, 2026
…tware#647) * Fixed an issue with QueryAsDataTable that only header rows cannot be read correctly * handling null value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
QueryAsDataTable不推荐使用,但是有些特殊情况下还是很好用的,目前发现如果Excel只有一个表头行时,无法正确读取,读取到的DataTable会没有任何列,这个PR修复了此问题