I am using Kinesis Analytics to read in JSON from Kinesis Firehose. I am successfully filtering out some of the records and writing a subset of the JSON properties to another Firehose.
I wanted to execute an Athena query on the data being written to S3 via the destination Firehose. However, the JSON records written to the files in S3 do not have any newlines. Consequently, when I query the data using Athena, it only returns the first record in each file.
When I write records to the source Firehose, I manually insert a newline between records, but Analytics doesn't seem to do this when writing to the destination.
Is there a way to get Analytics to write out a separator or newline between records, so Athena can see all of the records?