[GitHub] incubator-carbondata pull request #424: support octal escape delimited

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata pull request #424: support octal escape delimited

qiuchenjian-2
GitHub user boczhaow opened a pull request:

    https://github.com/apache/incubator-carbondata/pull/424

    support octal escape delimited

    to support octal escape delimited char


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/boczhaow/incubator-carbondata delimited

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-carbondata/pull/424.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #424
   
----
commit 7216dcac7a048861c254ed8a495938df1d0d3d69
Author: boczhaow <[hidden email]>
Date:   2016-12-13T03:06:54Z

    support octal escape delimited

commit 79fd1f5297ce137e042e98cdc025dab25f938311
Author: boczhaow <[hidden email]>
Date:   2016-12-13T03:13:33Z

    style

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata issue #424: support octal escape delimited

qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/424
 
    Can one of the admins verify this patch?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata issue #424: [CARBONDATA-528]support octal escape delimi...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user chenliang613 commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/424
 
    add to whitelist


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata issue #424: [CARBONDATA-528]support octal escape delimi...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/424
 
    Build Failed  with Spark 1.5.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/129/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata issue #424: [CARBONDATA-528]support octal escape delimi...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/424
 
    Build Success with Spark 1.5.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/133/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata pull request #424: [CARBONDATA-528]support octal escape...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/424#discussion_r92103661
 
    --- Diff: core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java ---
    @@ -599,22 +599,7 @@ public static void writeLevelCardinalityFile(String loadFolderLoc, String tableN
        * @return
        */
       public static String unescapeChar(String parseStr) {
    -    switch (parseStr) {
    -      case "\\001":
    -        return "\001";
    -      case "\\t":
    -        return "\t";
    -      case "\\r":
    -        return "\r";
    -      case "\\b":
    -        return "\b";
    -      case "\\f":
    -        return "\f";
    -      case "\\n":
    -        return "\n";
    -      default:
    -        return parseStr;
    -    }
    +    return scala.StringContext.treatEscapes(parseStr);
    --- End diff --
   
    I found the functionality of `treatEscapes` is as following.
    ```
      /** Expands standard Scala escape sequences in a string.
       *  Escape sequences are:
       *   control: `\b`, `\t`, `\n`, `\f`, `\r`
       *   escape:  `\\`, `\"`, `\'`
       *   octal:   `\d` `\dd` `\ddd` where `d` is an octal digit between `0` and `7`.
       *
       *  @param  str  A string that may contain escape sequences
       *  @return The string with all escape sequences expanded.
       */
    ```
    Do you want to support octal string like \1, \2?
    Adding this functionality is good, my concern is that can you find a java function instead of using scala library? Because generaling speaking, core should not dependent on scala library, they should be pure java implementation.
   
    Another thing is can you add a testcase for this PR?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata issue #424: [CARBONDATA-528]support octal escape delimi...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/424
 
    Build Failed  with Spark 1.5.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/136/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata issue #424: [CARBONDATA-528]support octal escape delimi...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user CarbonDataQA commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/424
 
    Build Success with Spark 1.5.2, Please check CI http://136.243.101.176:8080/job/ApacheCarbonPRBuilder/138/



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata issue #424: [CARBONDATA-528]support octal escape delimi...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user jackylk commented on the issue:

    https://github.com/apache/incubator-carbondata/pull/424
 
    LGTM.
    I checked java library but could not find one either, I think we can live with it now and refactory later.
    Thanks for working for this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---
Reply | Threaded
Open this post in threaded view
|

[GitHub] incubator-carbondata pull request #424: [CARBONDATA-528]support octal escape...

qiuchenjian-2
In reply to this post by qiuchenjian-2
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-carbondata/pull/424


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [hidden email] or file a JIRA ticket
with INFRA.
---