[jira] [Updated] (HIVE-4505) Hive can't load transforms added using 'ADD FILE'

2013-05-11 Thread Owen O'Malley (JIRA)

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

Owen O'Malley updated HIVE-4505:


Resolution: Fixed
Status: Resolved  (was: Patch Available)

I just committed this. Thanks, Prasad and Gunther!

 Hive can't load transforms added using 'ADD FILE'
 -

 Key: HIVE-4505
 URL: https://issues.apache.org/jira/browse/HIVE-4505
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.11.0
Reporter: Prasad Mujumdar
Assignee: Prasad Mujumdar
Priority: Blocker
 Fix For: 0.11.0

 Attachments: HIVE-4505-1.patch, HIVE-4505.2.patch, HIVE-4505-3.patch


 ADD FILE mangles name of the resource when copying to resource download 
 directory. As a results following doesn't work:
 {code:sql}
 ADD FILE test.py;
 SELECT TRANSFORM (id) USING 'python test.py' AS b FROM tab1;
 {code}
 The resource gets added with a different name every time which makes it 
 impossible to use transform in non-interactive mode.
 This seems to be due to HIVE-3431

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HIVE-4505) Hive can't load transforms added using 'ADD FILE'

2013-05-10 Thread Owen O'Malley (JIRA)

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

Owen O'Malley updated HIVE-4505:


Fix Version/s: 0.11.0

 Hive can't load transforms added using 'ADD FILE'
 -

 Key: HIVE-4505
 URL: https://issues.apache.org/jira/browse/HIVE-4505
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.11.0
Reporter: Prasad Mujumdar
Assignee: Prasad Mujumdar
Priority: Blocker
 Fix For: 0.11.0

 Attachments: HIVE-4505-1.patch


 ADD FILE mangles name of the resource when copying to resource download 
 directory. As a results following doesn't work:
 {code:sql}
 ADD FILE test.py;
 SELECT TRANSFORM (id) USING 'python test.py' AS b FROM tab1;
 {code}
 The resource gets added with a different name every time which makes it 
 impossible to use transform in non-interactive mode.
 This seems to be due to HIVE-3431

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HIVE-4505) Hive can't load transforms added using 'ADD FILE'

2013-05-10 Thread Gunther Hagleitner (JIRA)

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

Gunther Hagleitner updated HIVE-4505:
-

Attachment: HIVE-4505.2.patch

I've refactored [~prasadm]'s code slightly with [~owen.omalley]'s 
recommendation. I think the added benefit is that it'll work for both CLI and 
HS2 with the default configuration.

I also added a test case that exercises the code (TestMinimrCliDriver, fails 
before, passes after).

Finally, I ran tests and it looks good.

What do you guys think?

 Hive can't load transforms added using 'ADD FILE'
 -

 Key: HIVE-4505
 URL: https://issues.apache.org/jira/browse/HIVE-4505
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.11.0
Reporter: Prasad Mujumdar
Assignee: Prasad Mujumdar
Priority: Blocker
 Fix For: 0.11.0

 Attachments: HIVE-4505-1.patch, HIVE-4505.2.patch


 ADD FILE mangles name of the resource when copying to resource download 
 directory. As a results following doesn't work:
 {code:sql}
 ADD FILE test.py;
 SELECT TRANSFORM (id) USING 'python test.py' AS b FROM tab1;
 {code}
 The resource gets added with a different name every time which makes it 
 impossible to use transform in non-interactive mode.
 This seems to be due to HIVE-3431

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HIVE-4505) Hive can't load transforms added using 'ADD FILE'

2013-05-10 Thread Prasad Mujumdar (JIRA)

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

Prasad Mujumdar updated HIVE-4505:
--

Attachment: HIVE-4505-3.patch

- Use UUID as the hive session id
- Clean up the download dir in when CLI is invoked with -f option
- Handle minor error cases

 Hive can't load transforms added using 'ADD FILE'
 -

 Key: HIVE-4505
 URL: https://issues.apache.org/jira/browse/HIVE-4505
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.11.0
Reporter: Prasad Mujumdar
Assignee: Prasad Mujumdar
Priority: Blocker
 Fix For: 0.11.0

 Attachments: HIVE-4505-1.patch, HIVE-4505.2.patch, HIVE-4505-3.patch


 ADD FILE mangles name of the resource when copying to resource download 
 directory. As a results following doesn't work:
 {code:sql}
 ADD FILE test.py;
 SELECT TRANSFORM (id) USING 'python test.py' AS b FROM tab1;
 {code}
 The resource gets added with a different name every time which makes it 
 impossible to use transform in non-interactive mode.
 This seems to be due to HIVE-3431

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HIVE-4505) Hive can't load transforms added using 'ADD FILE'

2013-05-06 Thread Prasad Mujumdar (JIRA)

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

Prasad Mujumdar updated HIVE-4505:
--

Status: Patch Available  (was: Open)

Review request on https://reviews.apache.org/r/10945/

 Hive can't load transforms added using 'ADD FILE'
 -

 Key: HIVE-4505
 URL: https://issues.apache.org/jira/browse/HIVE-4505
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.11.0
Reporter: Prasad Mujumdar
Assignee: Prasad Mujumdar
Priority: Blocker
 Fix For: 0.11.0, 0.12.0

 Attachments: HIVE-4505-1.patch


 ADD FILE mangles name of the resource when copying to resource download 
 directory. As a results following doesn't work:
 {code:sql}
 ADD FILE test.py;
 SELECT TRANSFORM (id) USING 'python test.py' AS b FROM tab1;
 {code}
 The resource gets added with a different name every time which makes it 
 impossible to use transform in non-interactive mode.
 This seems to be due to HIVE-3431

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HIVE-4505) Hive can't load transforms added using 'ADD FILE'

2013-05-06 Thread Prasad Mujumdar (JIRA)

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

Prasad Mujumdar updated HIVE-4505:
--

Attachment: HIVE-4505-1.patch

Patch for 0.11 branch

 Hive can't load transforms added using 'ADD FILE'
 -

 Key: HIVE-4505
 URL: https://issues.apache.org/jira/browse/HIVE-4505
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.11.0
Reporter: Prasad Mujumdar
Assignee: Prasad Mujumdar
Priority: Blocker
 Fix For: 0.11.0, 0.12.0

 Attachments: HIVE-4505-1.patch


 ADD FILE mangles name of the resource when copying to resource download 
 directory. As a results following doesn't work:
 {code:sql}
 ADD FILE test.py;
 SELECT TRANSFORM (id) USING 'python test.py' AS b FROM tab1;
 {code}
 The resource gets added with a different name every time which makes it 
 impossible to use transform in non-interactive mode.
 This seems to be due to HIVE-3431

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (HIVE-4505) Hive can't load transforms added using 'ADD FILE'

2013-05-06 Thread Owen O'Malley (JIRA)

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

Owen O'Malley updated HIVE-4505:


Fix Version/s: (was: 0.12.0)
   (was: 0.11.0)

 Hive can't load transforms added using 'ADD FILE'
 -

 Key: HIVE-4505
 URL: https://issues.apache.org/jira/browse/HIVE-4505
 Project: Hive
  Issue Type: Bug
  Components: Query Processor
Affects Versions: 0.11.0
Reporter: Prasad Mujumdar
Assignee: Prasad Mujumdar
Priority: Blocker
 Attachments: HIVE-4505-1.patch


 ADD FILE mangles name of the resource when copying to resource download 
 directory. As a results following doesn't work:
 {code:sql}
 ADD FILE test.py;
 SELECT TRANSFORM (id) USING 'python test.py' AS b FROM tab1;
 {code}
 The resource gets added with a different name every time which makes it 
 impossible to use transform in non-interactive mode.
 This seems to be due to HIVE-3431

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira