Github user rxin commented on the pull request:
https://github.com/apache/spark/pull/11019#issuecomment-178416006
query:
```scala
sqlContext.range(1, 1000).select('id + 1 + 1).show()
```
old generated code:
```java
/* 068 */ while (!Range_overflow3 && Range_number2 <
Range_partitionEnd1) {
/* 069 */ long Range_value4 = Range_number2;
/* 070 */ Range_number2 += 1L;
/* 071 */ if (Range_number2 < Range_value4 ^ 1L < 0) {
/* 072 */ Range_overflow3 = true;
/* 073 */ }
/* 074 */
/* 075 */ /* ((input[0, bigint] + 1) + 1) */
/* 076 */ /* (input[0, bigint] + 1) */
/* 077 */ /* input[0, bigint] */
/* 078 */
/* 079 */ /* 1 */
/* 080 */
/* 081 */ long Project_value8 = -1L;
/* 082 */ Project_value8 = Range_value4 + 1L;
/* 083 */ /* 1 */
/* 084 */
/* 085 */ long Project_value6 = -1L;
/* 086 */ Project_value6 = Project_value8 + 1L;
/* 087 */
/* 088 */
/* 089 */ /* input[0, bigint] */
/* 090 */
/* 091 */ Project_rowWriter19.write(0, Project_value6);
/* 092 */ currentRow = Project_result17;
/* 093 */ return;
/* 094 */
/* 095 */
/* 096 */ }
```
new generated code
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]