UDTFs:更新了 Python 矢量化 UDTFs 的默认列名¶
Attention
This behavior change is in the 2023_06 bundle.
For the current status of the bundle, refer to Bundle History.
此变更仅影响矢量化 Python UDTFs (用户定义的表函数)的用户。
- Previously:
矢量化 UDTF 的输入 DataFrame 的默认列名是索引,例如 0、1、2、…等。
- Currently:
矢量化 UDTF 的输入 DataFrame 的默认列名与 SQL 函数的签名相符。默认情况下,使用数字索引将不再起作用,您将收到“Key Error”。
The column names will follow the SQL identifier requirements. Namely, if an identifier is unquoted it will be capitalized, and if it’s double quoted it will be preserved as it is.
For details, see Vectorized Python UDTFs.
参考号:1275