--quote-all on empty file with only headers yield output without headers #1877
-
Attached filesExpected behaviorWhen I use the "--quote-all" flag and the "cat" verb, I expect to get all cells with double quote around the content. Example: Observed behaviorWhen a file contains csv headers but no data, the output is empty. Example: QuestionIs this an expected behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi,
to get
|
Beta Was this translation helpful? Give feedback.
-
Hi @johanmazelanssi and @aborruso ! This is an instance of #314. Miller doesn't handle a stream containing zero records.
@aborruso trick with #314 is a good project to do, and a non-trivial one. Miller would need to have some concept of a zero-length record propagated throughout its source code. |
Beta Was this translation helpful? Give feedback.
Thank you very much that indeed fixes my problem. :)
Shouldn't the default behavior not require this flag though?