Class ParseException

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    UnparseableColumnsParseException

    public class ParseException
    extends RuntimeException
    ParseException can be thrown on both ingestion side and query side. During ingestion, ParseException can be thrown in two places, i.e., InputSourceReader#read() and IncrementalIndex#addToFacts(). To easily handle ParseExceptions, consider using FilteringCloseableInputRowIterator and ParseExceptionHandler to iterate input rows and to add rows to IncrementalIndex, respectively. When you use InputSourceReader#sample(), the ParseException will not be thrown, but be stored in InputRowListPlusRawValues. During query, ParseException can be thrown in SQL planning. It should be never thrown once a query plan is constructed.
    See Also:
    Serialized Form