3 ms·
And Twitter. We unit test our pig scripts, it's pretty straightforward given MockStorage class we have contributed (you can find it in pig trunk). Granted, we'
by squarecog 14y ago
And Twitter.
We unit test our pig scripts, it's pretty straightforward given MockStorage class we have contributed (you can find it in pig trunk). Granted, we've long been separating load statements from actual logic, which allows us to fairly easily mock up data to feed into the Pig flows. It would be harder if your loads and flows are in the same file.
- matterhayes 14y agoAt LinkedIn we collected together a bunch of UDFs we developed for pig and released it as the DataFu library. We used PigUnit to unit test each of the UDFs: https://github.com/linkedin/datafu/tree/master/test/pig/datafu/test/pig https://github.com/linkedin/datafu/tree/master/test/pig/data...