ahmedabu98 commented on issue #33963:
URL: https://github.com/apache/beam/issues/33963#issuecomment-2659406510

   Hey @saathwik-tk, I'm having trouble reproducing this one. Here's what I 
tried:
   
   1. Create an Iceberg table with BigQueryMetastoreCatalog using this 
partition spec:
   ```java
   PartitionSpec partitionSpec =
       PartitionSpec.builderFor(ICEBERG_SCHEMA)
           .identity("bool")
           .hour("datetime")
           .truncate("str", "value_x".length())
           .build();
   ```
   
   2. Write rows to Iceberg table
   3. Execute BQ query:
   ```java
   BigqueryClient bqClient = new BigqueryClient(getClass().getSimpleName());
   String q =
       String.format(
           "SELECT * FROM `%s.%s` where str = 'value_123'", 
OPTIONS.getProject(), tableId());
   List<TableRow> rowList = bqClient.queryUnflattened(q, OPTIONS.getProject(), 
true, true);
   ```
   As expected, I get one record where str = value_123. 
   
   I tried the same but without partitioning on "str" and it also works.


-- 
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]

Reply via email to