Fixed
-
#446: A
bufio.ErrTooLong
was being returned bybufio.Scanner
, when splitting lines from input that was too long (larger thanbufio.MaxScanTokenSize
, i.e.64KB
). This meant thatsq
wasn't able to parse large JSON files, amongst other problems. The maximum buffer size is now configurable via the newtuning.scan-buffer-limit
option. Note that the buffer will start small and grow as needed, up to the limit.$ sq config set tuning.scan-buffer-limit 64MB # or 1024B, 64KB, 1GB, etc.
A more useful error message is also now returned when the buffer limit is exceeded (the error suggests adjusting
tuning.scan-buffer-limit
).
Changed
- Renamed config option
tuning.buffer-mem-limit
totuning.buffer-spill-limit
. The new name better reflects the purpose of the option.