Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance empty file handling (facebookincubator#8459)
Summary: Pull Request resolved: facebookincubator#8459 Enhance empty file handling especially for empty files with headers by checking if the reader actually reads nothing. 1. The current implementation checks if `pos_` is `0` which does not cover the case when a header is present in the file. 2. When `skipLine()` returns true the loop should not be broken as logic like elements counting and null setting still yet to happen. Reviewed By: Yuhta Differential Revision: D52929853 fbshipit-source-id: 7e1c52c8cdf09b04f453d7ad81235429796096c9
- Loading branch information