-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
[SPARK-8902] Correctly print hostname in error #7288
Conversation
With "+" the strings are separate expressions, and format() is called on the last string before concatenation. (So substitution does not happen.) Without "+" the string literals are merged first by the parser, so format() is called on the complete string.
Can one of the admins verify this patch? |
OK to test |
(Thought I don't think jenkins tests this.) LGTM |
Test build #1015 has started for PR 7288 at commit |
Test build #1015 has finished for PR 7288 at commit
|
@darabos it would be good to file a trivial JIRA, and explain briefly how the output differs before and after this change. In general we should try to track all patches even for small ones like these, but this particular patch is really border line I think. |
Sure. A JIRA doesn't cost anything. I've filed https://issues.apache.org/jira/browse/SPARK-8902. |
ok to test. |
Merged build triggered. |
Merged build started. |
Test build #36845 has started for PR 7288 at commit |
Test build #36845 has finished for PR 7288 at commit
|
Merged build finished. Test PASSed. |
Thanks @darabos , merging into |
With "+" the strings are separate expressions, and format() is called on the last string before concatenation. (So substitution does not happen.) Without "+" the string literals are merged first by the parser, so format() is called on the complete string. Should I make a JIRA for this? Author: Daniel Darabos <darabos.daniel@gmail.com> Closes #7288 from darabos/patch-2 and squashes the following commits: be0d3b7 [Daniel Darabos] Correctly print hostname in error (cherry picked from commit 5687f76) Signed-off-by: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Does this actually work? @marmbrus tried it in the repl and couldn't get it working. |
Ah never mind this is python. Ignore me. |
With "+" the strings are separate expressions, and format() is called on the last string before concatenation. (So substitution does not happen.) Without "+" the string literals are merged first by the parser, so format() is called on the complete string.
Should I make a JIRA for this?