[ 
https://issues.apache.org/jira/browse/HIVE-6413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Remus Rusanu updated HIVE-6413:
-------------------------------

    Component/s: Build Infrastructure

> 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
>          Components: Build Infrastructure
>            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)

Reply via email to