kz930 opened a new pull request, #8480:
URL: https://github.com/apache/texera/pull/8480

   ### What changes were proposed in this PR?
   
   An operator that reads the year, quarter, month, day, weekday, day of year, 
ISO week, hour, minute or second out of a timestamp column, each added as a 
whole-number column of its own.
   
   Nothing here is parsed. The column is already a moment when it arrives, and 
which text became which moment was settled upstream, the way KNIME, Alteryx and 
Spark all separate parsing from extraction. The parts are read as ISO-8601 
states them, because the two runtimes disagree by default: pandas counts Monday 
as 0, `java.time` counts it as 1.
   
   ### Any related issues, documentation, discussions?
   
   Part of #8325, 23 of 24; that issue lists the set in order.
   
   Closes #8478, the task this change is the whole of.
   
   Aggregate groups by a column's values, and a timestamp has a different value 
in almost every row, so grouping by one puts each row in its own group. Sales 
by month could not be asked for, though the platform carries a TIMESTAMP type, 
a Gantt chart and a time-series plot.
   
   ### How was this PR tested?
   
   Twelve unit tests in the operator's own spec, over the schema it declares, 
the values the executor reads and the Python it emits. The parity harness runs 
it on 13 configurations, one per field plus a hostile column name and an empty 
cell, comparing the engine's answer against the exported script's.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Opus 5)
   


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