caicancai commented on code in PR #4843:
URL: https://github.com/apache/calcite/pull/4843#discussion_r2994963225


##########
arrow/src/test/java/org/apache/calcite/adapter/arrow/ArrowDataTest.java:
##########
@@ -430,4 +458,48 @@ private void timeField(FieldVector fieldVector, int 
rowCount) {
     }
     fieldVector.setValueCount(rowCount);
   }
+
+  private void timestampSecField(FieldVector fieldVector, int rowCount) {
+    // Base epoch: 2024-01-01 00:00:00 UTC = 1704067200 seconds
+    TimeStampSecVector tsVector = (TimeStampSecVector) fieldVector;
+    tsVector.setInitialCapacity(rowCount);
+    tsVector.allocateNew();
+    for (int i = 0; i < rowCount; i++) {
+      tsVector.set(i, 1704067200L + i * 86400L);

Review Comment:
   done, thanks



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