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

Simplifies hbase injections with fastAttempt macro #220

Merged
merged 3 commits into from
Jun 9, 2015

Conversation

benpence
Copy link
Contributor

@benpence benpence commented Jun 2, 2015

No description provided.

else str
}
fastAttempt(b)(Bytes.toString(b.get, b.getOffset, b.getLength) match {
case null => sys.error("Could not read string from: $b")
Copy link
Collaborator

Choose a reason for hiding this comment

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

you need s"Could not read ... note the s to do interpolation. This is a common bug and a bit of a pain with interpolation.

I'd recommend actually: s"$b decoded to null, which is disallowed."

johnynek added a commit that referenced this pull request Jun 9, 2015
Simplifies hbase injections with fastAttempt macro
@johnynek johnynek merged commit 0ebf3a3 into twitter:develop Jun 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants