Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented Mar 29, 2016

What changes were proposed in this pull request?

I just saw a query with over 1000 fields and the generated expression comment is pages long. At that level printing them no longer gives us much benefit. We should just cap the length at some level. This patch changes it to max 128 chars.

How was this patch tested?

Manually examined the generated code.

@rxin
Copy link
Contributor Author

rxin commented Mar 29, 2016

cc @davies

@rxin
Copy link
Contributor Author

rxin commented Mar 29, 2016

Going to close this and let @sameeragarwal take over.

@rxin rxin closed this Mar 29, 2016
@SparkQA
Copy link

SparkQA commented Mar 29, 2016

Test build #54399 has finished for PR 12022 at commit 5316415.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

asfgit pushed a commit that referenced this pull request Mar 29, 2016
## What changes were proposed in this pull request?

Builds on #12022 and (a) appends "..." to truncated comment strings and (b) fixes indentation in lines after the commented strings if they happen to have a `(`, `{`, `)` or `}`

## How was this patch tested?

Manually examined the generated code.

Author: Sameer Agarwal <[email protected]>

Closes #12044 from sameeragarwal/comment.
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