Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/8561#discussion_r39429948
--- Diff: python/pyspark/sql/tests.py ---
@@ -830,12 +830,12 @@ def test_infer_long_type(self):
self.assertEquals(100000000000000, df1.first().f2)
self.assertEqual(_infer_type(1), LongType())
- self.assertEqual(_infer_type(2**10), LongType())
- self.assertEqual(_infer_type(2**20), LongType())
- self.assertEqual(_infer_type(2**31 - 1), LongType())
- self.assertEqual(_infer_type(2**31), LongType())
- self.assertEqual(_infer_type(2**61), LongType())
- self.assertEqual(_infer_type(2**71), LongType())
+ self.assertEqual(_infer_type(1<<10), LongType())
--- End diff --
Please remove unrelated content. You can make a new PR for this, though I
don't think the change is necessary.
---
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]