Abhi2939 commented on code in PR #41154:
URL: https://github.com/apache/beam/pull/41154#discussion_r4529816281
##########
sdks/python/apache_beam/io/textio_test.py:
##########
@@ -1889,6 +1890,49 @@ def check_types(element):
_ = pcoll | beam.Map(check_types)
+ def test_float_precision(self):
+ records = [
+ beam.Row(id=1, x=0.1234567890123),
+ beam.Row(id=2, x=1e-11),
+ beam.Row(id=3, x=0.1234567890123456),
+ ]
+
+ def write_and_read(**kwargs):
+ with tempfile.TemporaryDirectory() as dest:
+ with TestPipeline() as p:
+ # pylint: disable=expression-not-assigned
+ p | beam.Create(records) | beam.io.WriteToJson(
Review Comment:
Good call, thanks! Switched to `_ = p | ...` and dropped the pylint hint in
`test_float_precision`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]