You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "David Milicevic (Jira)" <ji...@apache.org> on 2026/02/09 08:49:00 UTC
[jira] [Updated] (SPARK-55440) Types Framework - Phase 1a - Core Type System Foundation
[ https://issues.apache.org/jira/browse/SPARK-55440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Milicevic updated SPARK-55440:
------------------------------------
Summary: Types Framework - Phase 1a - Core Type System Foundation (was: Phase 1a - Core Type System Foundation)
> Types Framework - Phase 1a - Core Type System Foundation
> --------------------------------------------------------
>
> Key: SPARK-55440
> URL: https://issues.apache.org/jira/browse/SPARK-55440
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 4.2.0
> Reporter: David Milicevic
> Priority: Major
>
> *Summary:*
> Create framework interfaces and integrate core type operations
> *Description:*
> Create the foundational Ops traits and interfaces, implement them for TimeType as proof of concept, and integrate with core type system files.
> *What this includes:*
> * Base traits ({{{}TypeOps{}}}, {{{}TypeApiOps{}}}) with factory objects and {{supports()}} methods
> * Five core interfaces: {{{}PhyTypeOps{}}}, {{{}LiteralTypeOps{}}}, {{{}ExternalTypeOps{}}}, {{{}FormatTypeOps{}}}, {{EncodeTypeOps}}
> * TimeType implementation: {{TimeTypeOps}} (catalyst) and {{TimeTypeApiOps}} (sql-api)
> * Feature flag: {{spark.sql.types.framework.enabled}}
> * Check-and-delegate integration in ~10 core files: {{{}PhysicalDataType{}}}, {{{}CatalystTypeConverters{}}}, {{{}ToStringBase{}}}, {{{}RowEncoder{}}}, {{{}literals.scala{}}}, {{{}EncoderUtils{}}}, {{{}CodeGenerator{}}}, {{{}SpecificInternalRow{}}}, {{{}InternalRow{}}}, {{{}SQLConf{}}}/{{{}SqlApiConf{}}}
> {*}Example - before and after for physical type dispatch:{*}{*}{{*}}
> {code:java}
> // Before: each type hardcoded
> case _: TimeType => PhysicalLongType
> // After: framework dispatch
> case _ if PhyTypeOps.supports(dt) => PhyTypeOps(dt).getPhysicalType{code}
> *Design doc:*
> Linked in the parent work item.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org