Shivangi Jha created HIVE-27995: ----------------------------------- Summary: FIx inconsistent behavior of LOAD DATA command for partitioned and non-partitioned tables. Key: HIVE-27995 URL: https://issues.apache.org/jira/browse/HIVE-27995 Project: Hive Issue Type: Bug Reporter: Shivangi Jha Assignee: Shivangi Jha
For partitioned tables, while executing LOAD DATA/ LOAD DATA LOCAL commands, the check for file existence is not executed on HiveServer2, and this in turn throws an error during Runtime once the job is launched. {code:java} java.io.FileNotFoundException: File file:/<filepath> does not exist.{code} Non-partitioned tables do not follow this control flow, and the checks are run appropriately at compile time. Incase the file does not exist, user is presented with the error. {code:java} Invalid path "file:///<filepath>: No files matching path file:/<filepath>{code} This is inconsistent and error prone behavior. -- This message was sent by Atlassian Jira (v8.20.10#820010)