A Spark DataFrame
has the .columns
attribute:
dataFrame.columns
A DeltaTable
does not. Note that the latter is based off a parquet
file/directory and parquet
s are self-describing so the columnar info is available at the least in the files themselves. So the columnar info should be accessible/available from the DeltaTable
. I just have not been able to find anything even by going deep into its protected/private attributes with a debugger. I wonder what is the way to work with these constructs?