infer_format#
- DatabricksUnityCatalog.infer_format(table: str) ReaderFormat | None[source]#
Best-effort format hint from table metadata or file extension.
Calling this function will query DatabricksUnityCatalog to get the relevant information.
- Parameters:
table (str) – The full name of the Unity Catalog table.
- Returns:
The inferred reader format, or
Noneif neither the table metadata nor the file extension identifies one.- Return type:
ReaderFormat | None