You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Xuefu Zhang (JIRA)" <ji...@apache.org> on 2015/03/13 03:46:38 UTC
[jira] [Commented] (HIVE-9948) SparkUtilities.getFileName passes
File.separator to String.split() method
[ https://issues.apache.org/jira/browse/HIVE-9948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14359832#comment-14359832 ]
Xuefu Zhang commented on HIVE-9948:
-----------------------------------
+1 pending on test.
> SparkUtilities.getFileName passes File.separator to String.split() method
> -------------------------------------------------------------------------
>
> Key: HIVE-9948
> URL: https://issues.apache.org/jira/browse/HIVE-9948
> Project: Hive
> Issue Type: Bug
> Components: Spark
> Reporter: Alexander Pivovarov
> Assignee: Alexander Pivovarov
> Priority: Minor
> Attachments: HIVE-9948.1.patch
>
>
> String.split() method expects regex. This is why File.separator can not be passed to split.
> In this particular case we can use FilenameUtils.getName to get file name
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)