Closed std4lqi closed 3 years ago
This seems to work for me 😄 . In testing on windows, the file is downloaded with x'0D0A'
carriage return & line feed. These two bytes are not included in the rdw
.
Thanks @std4lqi for adding this feature! Functionally, this PR seems to work for me. I am able to get RDW values in my downloaded data sets using the new --rdw
option. There are a couple minor merge conflicts, but they should be able to be resolved without affecting the function of this PR.
The automated tests are mostly passing for me, but there may be a snapshot that needs to be updated:
@lauren-li I updated snapshot for --rdw
. Thanks!
@dkelosky Thanks for your testing! We use rdw
heavily for binary variable length dataset.
Usually, the EOL is appended in the dataset downloaded with ASCII
, so even without rdw
, we still can tell the end of record (text line in this case) with EOL. From my view, TRANSFER_TYPE_ASCII_RDW
is not so useful, but I incline to adding for consistency, or there is some case I'm not aware of.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
To support #58
Signed-off-by: Qi Liang 31643673+std4lqi@users.noreply.github.com