fastflowtransform.table_formats¶
register_spark_format ¶
register_spark_format(name, handler_cls)
Register or override a Spark format handler.
This can be used by extensions/plug-ins to add new formats without touching core code.
Source code in src/fastflowtransform/table_formats/__init__.py
22 23 24 25 26 27 28 29 30 31 32 | |
get_spark_format_handler ¶
get_spark_format_handler(table_format, spark, *, table_options=None, sql_runner=None)
Factory for SparkFormatHandler based on a logical format name.
- If a specific handler is registered (delta, iceberg, ...), use it.
- Otherwise fall back to DefaultSparkFormatHandler with
table_format.
Source code in src/fastflowtransform/table_formats/__init__.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | |