scalding
scalding copied to clipboard
toIterator won't work for VersionedKeyValSource
We found that calling toIterator on a VersionedKeyValSource won't work. The returned Iterator cannot be correctly deserialized. We used a workaround like:
toIterator .asInstanceOf[Iterator[(Array[Byte], Array[Byte])]] .map{x : (Array[Byte], Array[Byte]) => checkedInversion(x).get}
Should we consider this as a bug? And put this code to VersionedKeyValSource class and override its toIterator?
this is a dup of #1013
The issue is transformForRead can be incompatible with toIterator.
Gotcha. Let's close this issue since it's tracked in #1013.