ahmedabu98 commented on issue #33497:
URL: https://github.com/apache/beam/issues/33497#issuecomment-2580161430
So it looks like we're writing the correct records to the correct
partitions, but we get the wrong results when reading it back...
I can see the issue even when reading it with the Beam Iceberg connector:
<details>
<summary>Code snippet </summary>
```java
p
.apply(
Managed.read(Managed.ICEBERG)
.withConfig(
ImmutableMap.of(
"table",
tableId,
"catalog_properties",
ImmutableMap.of(
"catalog-impl", BQMS_CATALOG,
"gcp_project", project,
"gcp_location", "us-central1",
"warehouse", warehouse))))
.getSinglePCollection()
.apply(
MapElements.into(TypeDescriptors.nulls())
.via(
r -> {
long l = r.getInt64("long");
String s = r.getString("str");
if (!s.contains(String.valueOf(l))) {
System.out.println("WEIRD! " + r);
}
return null;
}));
p.run().waitUntilFinish();
```
```
WEIRD! Row:
long:751
str:value_811
```
</details>
--
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]