Fokko commented on issue #7226:
URL: https://github.com/apache/iceberg/issues/7226#issuecomment-1598538623

   Able to reproduce this:
   ```java
   @Test
   public void testStructuredStreaming() throws TimeoutException, 
StreamingQueryException {
     sql("DROP TABLE IF EXISTS %s", tableName("structured_streaming"));
   
     sql("create table %s(ts timestamp) using iceberg partitioned by 
(days(ts))", tableName("structured_streaming"));
   
     List<TimestampRow> nums = new ArrayList<TimestampRow>();
     nums.add(new TimestampRow(Timestamp.valueOf("2021-01-01 00:00:00")));
     nums.add(new TimestampRow(Timestamp.valueOf("2021-01-02 00:00:00")));
     nums.add(new TimestampRow(Timestamp.valueOf("2021-01-03 00:00:00")));
   
     MemoryStream<TimestampRow> ms = new MemoryStream<>(100, 
spark.sqlContext(), null, Encoders.bean(TimestampRow.class));
   
     
ms.addData(JavaConverters.asScalaIteratorConverter(nums.iterator()).asScala().toSeq());
   
     ms.toDF()
             .writeStream()
             .format("iceberg")
             .outputMode("append")
             .option("checkpointLocation", "/tmp/spark-checkpoint")
             .option("fanout-enabled", true)
             .trigger(Trigger.Once())
             .toTable(tableName("structured_streaming"))
             .awaitTermination();
   }
   ```
   
   Seems that a regular query does not hit `V2ExpressionUtils`


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to