ARROW-2119: [IntegrationTest] Add test case with a stream having no record batches
ARROW-2119: [IntegrationTest] Add test case with a stream having no record batches

I think it is not a bad idea to not fail on reading and writing streams that have no record batches, rather than raising an error.

This would require code changes in Java and JS at least, so I will need help from others if this is thought to be a good idea. Might be good to add some unit tests around this also

Author: Wes McKinney <wesm+git@apache.org>

Closes #3871 from wesm/ARROW-2119 and squashes the following commits:

acc5ac90e <Wes McKinney> Disable no-batches case for JS and Java
f4816fe65 <Wes McKinney> Add test case with a string having no record batches

wesm/arrow,kou/arrow,kou/arrow,cpcloud/arrow,renesugar/arrow,apache/arrow,icexelloss/arrow,majetideepak/arrow,wesm/arrow,icexelloss/arrow,cpcloud/arrow,apache/arrow,icexelloss/arrow,icexelloss/arrow,xhochy/arrow,xhochy/arrow,cpcloud/arrow,cpcloud/arrow,cpcloud/arrow,majetideepak/arrow,xhochy/arrow,renesugar/arrow,icexelloss/arrow,kou/arrow,renesugar/arrow,laurentgo/arrow,majetideepak/arrow,apache/arrow,wesm/arrow,cpcloud/arrow,wesm/arrow,apache/arrow,majetideepak/arrow,kou/arrow,kou/arrow,renesugar/arrow,renesugar/arrow,xhochy/arrow,apache/arrow,kou/arrow,icexelloss/arrow,laurentgo/arrow,laurentgo/arrow,cpcloud/arrow,cpcloud/arrow,kou/arrow,renesugar/arrow,laurentgo/arrow,kou/arrow,laurentgo/arrow,apache/arrow,xhochy/arrow,majetideepak/arrow,cpcloud/arrow,apache/arrow,apache/arrow,renesugar/arrow,laurentgo/arrow,xhochy/arrow,wesm/arrow,laurentgo/arrow,renesugar/arrow,icexelloss/arrow,icexelloss/arrow,apache/arrow,wesm/arrow,renesugar/arrow,icexelloss/arrow,icexelloss/arrow,xhochy/arrow,majetideepak/arrow,majetideepak/arrow,wesm/arrow,xhochy/arrow,majetideepak/arrow,xhochy/arrow,xhochy/arrow,laurentgo/arrow,laurentgo/arrow,wesm/arrow,kou/arrow,renesugar/arrow,icexelloss/arrow,apache/arrow,kou/arrow,laurentgo/arrow,cpcloud/arrow,laurentgo/arrow,kou/arrow,renesugar/arrow,majetideepak/arrow,kou/arrow,majetideepak/arrow,kou/arrow,laurentgo/arrow,renesugar/arrow,wesm/arrow,xhochy/arrow,xhochy/arrow,apache/arrow,majetideepak/arrow,wesm/arrow,apache/arrow,renesugar/arrow,wesm/arrow,majetideepak/arrow,xhochy/arrow,majetideepak/arrow,cpcloud/arrow,wesm/arrow,laurentgo/arrow,apache/arrow,xhochy/arrow,icexelloss/arrow,majetideepak/arrow,laurentgo/arrow,kou/arrow,wesm/arrow,cpcloud/arrow,xhochy/arrow,icexelloss/arrow,renesugar/arrow,icexelloss/arrow,apache/arrow,cpcloud/arrow,wesm/arrow,cpcloud/arrow,majetideepak/arrow,laurentgo/arrow,renesugar/arrow