Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

executor: a naive support for load data fields enclosed by #3759

Merged
merged 5 commits into from
Jul 20, 2017

Conversation

tiancaiamao
Copy link
Contributor

A very naive way to support fields enclosed by xxx:

change
split(input, terminated)
to
split(input, enclosed+terminated+enclosed)

@zimulala @shenli

@tiancaiamao
Copy link
Contributor Author

PTAL @zimulala

@zimulala
Copy link
Contributor

PTAL @hanfei1991

Copy link
Member

@hanfei1991 hanfei1991 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hanfei1991 hanfei1991 added the status/LGT1 Indicates that a PR has LGTM 1. label Jul 19, 2017
if c, ok = escapeChar(str[i+1]); ok {
i++
}
c, _ = escapeChar(str[i+1])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignore ok? Any test case covers this?

if c, ok = escapeChar(str[i+1]); ok {
i++
}
c = escapeChar(str[i+1])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What will the result be if we meet "\c"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\c is escaped to c

@shenli
Copy link
Member

shenli commented Jul 20, 2017

LGTM

@shenli shenli added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Jul 20, 2017
@zimulala
Copy link
Contributor

Please update the docs-cn.

@hanfei1991 hanfei1991 merged commit b55245d into master Jul 20, 2017
@hanfei1991 hanfei1991 deleted the tiancaiamao/enclosed-by branch July 20, 2017 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants