Tamas Mate created IMPALA-9732:
----------------------------------

             Summary: Improve exceptions of unsupported HdfsTableSink formats
                 Key: IMPALA-9732
                 URL: https://issues.apache.org/jira/browse/IMPALA-9732
             Project: IMPALA
          Issue Type: Improvement
          Components: Frontend
    Affects Versions: Impala 3.4.0
            Reporter: Tamas Mate
            Assignee: Tamas Mate


For unsupported table writes an IllegalStateException is thrown during planning 
[here|https://github.com/apache/impala/blame/e46bbf29d43f1d3b118933d06c63ceb135beaf9c/fe/src/main/java/org/apache/impala/planner/HdfsTableSink.java#L144]:
{code:java}
 Preconditions.checkState(false, "Unsupported TableSink format(s): " + 
Joiner.on(',').join(unsupportedFormats));
{code}
This exception could be improved by changing the IllegalStateException to a 
more meaningful one and the "TableSink format" to a term which is familiar for 
the users.

Additionally, the exception is thrown generally when a table has a partition 
with unsupported format, dynamic partitioning is not taken into consideration. 
The check could be extended to only throw exception when the partition that is 
being written is unsupported.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to