I've imported a dataset of JSON objects that all have consistent schema. Glue crawler finished successfully and created a table. I can select * with a limit in Athena, but when I select all rows I get this error:
HIVE_BAD_DATA: Error Parsing a column in the table: Current entry must be closed before a null can be written
Why would a SELECT need to write a null? Is it talking about writing to the results bucket?
Googling for the error gives me just a handful of results to some BlockBuilder Presto source code:
@Override
public BlockBuilder appendNull()
{
if (currentEntrySize > 0) {
throw new IllegalStateException("Current entry must be closed before a null can be written");
}
hasNullValue = true;
entryAdded(0, true);
return this;
}