You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Remus Rusanu (JIRA)" <ji...@apache.org> on 2014/02/12 15:23:19 UTC

[jira] [Created] (HIVE-6413) Use of relative paths for data load in .q files breaks on Windows

Remus Rusanu created HIVE-6413:
----------------------------------

             Summary: Use of relative paths for data load in .q files breaks on Windows
                 Key: HIVE-6413
                 URL: https://issues.apache.org/jira/browse/HIVE-6413
             Project: Hive
          Issue Type: Test
            Reporter: Remus Rusanu


Eg. partition_type_check.q:

FAILED: SemanticException Line 2:23 Invalid path ''../../data/files/T1.txt'': Relative path in absolute URI: file:E:/HW/project/hive-monarch/data/files/T1.txt

This happens because the path is constructed in LoadSemanticAnalizer.initializeFromUri by appending the "user.dir" system property:  path = new Path(System.getProperty("user.dir"), fromPath).toString(); . The resulted path is missing the leading "/" in front the drive letter.

This was fixed in the past with HIVE-3126 (change 39fbb41e3e96858391646c0e20897e848616e8e2) but was reverted with HIVE-6048 (change c6f3bcccda986498ecb1e8070594961203038a8b)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)