Kousuke Saruta created SPARK-14185:
--------------------------------------
Summary: Make indentation of debug log for generated code proper
Key: SPARK-14185
URL: https://issues.apache.org/jira/browse/SPARK-14185
Project: Spark
Issue Type: Bug
Components: SQL
Affects Versions: 2.0.0
Reporter: Kousuke Saruta
Priority: Trivial
The indentation of debug log output by `CodeGenerator` is weird.
The first line of the generated code should be put on the next line of the
first line of the log message.
{code}
16/03/28 11:10:24 DEBUG CodeGenerator: /* 001 */
/* 002 */ public java.lang.Object generate(Object[] references) {
/* 003 */ return new SpecificSafeProjection(references);
...
{code}
After this patch is applied, we get debug log like as follows.
{code}
16/03/28 10:45:50 DEBUG CodeGenerator:
/* 001 */
/* 002 */ public java.lang.Object generate(Object[] references) {
/* 003 */ return new SpecificSafeProjection(references);
...
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]