title: Why are some jsonl files failing to load in SparklyR
body: <p>I am currently trying to read in some jsonl files using SparklyR v 1.3.1 with Spark 2.3.3. While some files read in fine, I am struggling with others, using exactly the same code. Long-ish details below including error messages and packages/code being used.</p>
  <pre><code>library(sparklyr)
  library(sparklyr.nested)
  library(dplyr)
  
  sc &lt;- spark_connect(master = &quot;local&quot;)
  
  june1 &lt;- spark_read_json(sc, &quot;june1-aa.jsonl&quot;)
  
  june &lt;- spark_read_json(sc, &quot;janetweets_june24.jsonl&quot;)
  Error: org.apache.spark.sql.AnalysisException: Since Spark 2.3, the queries from raw JSON/CSV files are disallowed when the
  referenced columns only include the internal corrupt record column
  (named _corrupt_record by default). For example:
  spark.read.schema(schema).json(file).filter($&quot;_corrupt_record&quot;.isNotNull).count()
  and spark.read.schema(schema).json(file).select(&quot;_corrupt_record&quot;).show().
  Instead, you can cache or save the parsed results and then send the same query.
  For example, val df = spark.read.schema(schema).json(file).cache() and then
  df.filter($&quot;_corrupt_record&quot;.isNotNull).count().;
  </code></pre>
  <p>The first file appears to read in ok, but any attempt to view the file meets with the following error, and &quot;no tables&quot; is displayed in the connections window, as opposed to the file structure for similar files which can be read in fine.</p>
  <pre><code>Error in value[[3L]](cond) : 
    Failed to fetch data: java.lang.NullPointerException
      at sparklyr.Collectors$.collectLongArr(collectors.scala:87)
      at sparklyr.Collectors$$anonfun$mkColumnCtx$17.apply(collectors.scala:224)
      at sparklyr.Collectors$$anonfun$mkColumnCtx$17.apply(collectors.scala:224)
      at sparklyr.Collectors$ColumnCtx.collect(collectors.scala:183)
      at sparklyr.Utils$.sparklyr$Utils$$collectRows(utils.scala:90)
      at sparklyr.Utils$.collect(utils.scala:114)
      at sparklyr.Utils.collect(utils.scala)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sparklyr.Invoke.invoke(invoke.scala:147)
      at sparklyr.StreamHandler.handleMethodCall(stream.scala:136)
      at sparklyr.StreamHandler.read(stream.scala:61)
      at sparklyr.BackendHandler$$anonfun$channelRead0$1.apply$mcV$sp(h
  </code></pre>
  <p>Owing to the size of these files, these are the first lines on each file, as viewed in terminal.</p>
  <p>Sample data in pastebin: <a href="https://pastebin.com/y3Zevnpv" rel="nofollow noreferrer">https://pastebin.com/y3Zevnpv</a>.</p>
  <p>I have tried updating my package to the latest version, deleting and reinstalling, and these files  are definitely in the jsonlines format. This files were pulled from Twitter using the twarc command line tool from a Windows machine. Pls note: I have removed some URLs from above data owing to Stack Overflow guidelines. Thanks!</p>