[
https://issues.apache.org/jira/browse/SPARK-57824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Max Gekk updated SPARK-57824:
-----------------------------
Shepherd: Max Gekk
> Support nanosecond-precision timestamps in
> approx_count_distinct_for_intervals and approx_top_k
> -----------------------------------------------------------------------------------------------
>
> Key: SPARK-57824
> URL: https://issues.apache.org/jira/browse/SPARK-57824
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.3.0
> Reporter: Max Gekk
> Priority: Major
>
> This sub-task is part of the umbrella SPARK-56822 (timestamps with nanosecond
> precision).
> h2. Problem
> {{ApproxCountDistinctForIntervals}}
> (aggregate/ApproxCountDistinctForIntervals.scala ~L69-148) and {{ApproxTopK}}
> (aggregate/ApproxTopKAggregates.scala ~L229-231 and related) list only
> microsecond timestamp types in their supported/input types and convert
> timestamps via {{Long}}.
> h2. Goal
> Accept {{AnyTimestampNanoType}} and handle {{TimestampNanosVal}} in the
> sketch update/estimation paths.
> h2. Scope
> Extend the supported-type lists; add nanosecond value handling (map to a
> comparable/hashable key preserving the remainder).
> h2. Acceptance criteria
> * Both aggregates run over NTZ/LTZ nanosecond timestamps and produce results
> consistent with the microsecond behavior.
> h2. Testing
> The respective aggregate suites; nanos golden files.
> h2. Dependencies
> None - independent.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]