Open wataash opened 5 years ago
Thanks - we'll try to do this as part of the next version.
Hmm, agate raises ValueError
for "Row 0 has 3 values, but Table only has 2 columns." type errors in agate/table/__init__.py
. We'd have to introduce a new error class (subclass'ing ValueError, in case anyone catches these). We'd also have to handle it all over the place, because we need access to the reader to print the dialect.
Debug output
This is a good idea. As above, we'd have to add it in a lot of places. Happy to merge a PR!
and, how about showing warning of excessing SNIFF_LIMIT?:
The snifflimit was reduced in 1.0.7 to avoid sniffing huge files (which is very slow). So, this warning would now be emitted too frequently to be useful.
In the latter case, sample is trimmed, losing the header
colA,colB
, thus white space " " is used as the delimiter.It was tough for me to figure out this behavior. So how about showing "what delimiter is used" in:
and, how about showing warning of excessing
SNIFF_LIMIT
?: