diff options
author | Kousuke Saruta <sarutak@oss.nttdata.co.jp> | 2016-03-27 23:50:23 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-27 23:50:23 -0700 |
commit | aac13fb48c8aa7d6816ea46c2e40154913477717 (patch) | |
tree | 8f319b7457206e71e45ab1b07487461dc95fb6f6 /repl | |
parent | 8ef493760f58687df766d03ccf64039635a2609f (diff) | |
download | spark-aac13fb48c8aa7d6816ea46c2e40154913477717.tar.gz spark-aac13fb48c8aa7d6816ea46c2e40154913477717.tar.bz2 spark-aac13fb48c8aa7d6816ea46c2e40154913477717.zip |
[SPARK-14185][SQL][MINOR] Make indentation of debug log for generated code proper
## What changes were proposed in this pull request?
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.
```
16/03/28 11:10:24 DEBUG CodeGenerator: /* 001 */
/* 002 */ public java.lang.Object generate(Object[] references) {
/* 003 */ return new SpecificSafeProjection(references);
...
```
After this patch is applied, we get debug log like as follows.
```
16/03/28 10:45:50 DEBUG CodeGenerator:
/* 001 */
/* 002 */ public java.lang.Object generate(Object[] references) {
/* 003 */ return new SpecificSafeProjection(references);
...
```
## How was this patch tested?
Ran some jobs and checked debug logs.
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Closes #11990 from sarutak/fix-debuglog-indentation.
Diffstat (limited to 'repl')
0 files changed, 0 insertions, 0 deletions