Class ParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.druid.java.util.common.parsers.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:
  • Constructor Details

    • ParseException

      public ParseException(@Nullable String input, String formatText, Object... arguments)
    • ParseException

      public ParseException(@Nullable String input, boolean fromPartiallyValidRow, String formatText, Object... arguments)
    • ParseException

      public ParseException(@Nullable String input, Throwable cause, String formatText, Object... arguments)
    • ParseException

      public ParseException(@Nullable String input, boolean fromPartiallyValidRow, Throwable cause, String formatText, Object... arguments)
  • Method Details

    • isFromPartiallyValidRow

      public boolean isFromPartiallyValidRow()
    • getTimeOfExceptionMillis

      public long getTimeOfExceptionMillis()
    • getInput

      @Nullable public String getInput()