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
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 Summary
ConstructorsConstructorDescriptionParseException(String input, boolean fromPartiallyValidRow, String formatText, Object... arguments) ParseException(String input, boolean fromPartiallyValidRow, Throwable cause, String formatText, Object... arguments) ParseException(String input, String formatText, Object... arguments) ParseException(String input, Throwable cause, String formatText, Object... arguments) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
-
ParseException
-
ParseException
-
ParseException
-
-
Method Details
-
isFromPartiallyValidRow
public boolean isFromPartiallyValidRow() -
getTimeOfExceptionMillis
public long getTimeOfExceptionMillis() -
getInput
-