表结构就是用schema函数,例如我这里有个例子:
loadTable("dfs://Factor10MinSH","Factor10MinSH").schema().colDefs
得到结果如下:
name typeString typeInt extra comment SecurityID SYMBOL 17 Date DATE 6 Time TIME 8 FactorID SYMBOL 17 FactorValue DOUBLE 16