无法读取数据 - option() 得到了意外的关键字参数 'sfUrl'
Cannot read data - option() got an unexpected keyword argument 'sfUrl'
我正在尝试将雪花数据库 table 中的数据读入数据块。下面是我的代码:
options = {
"sfUrl": "xxxxxx.snowflakecomputing.com",
"sfUser": "xxxxxxx",
"sfPassword": "xxxx",
"sfDatabase": "xxxxxxx",
"sfSchema": "xxxxxxx",
"sfWarehouse": "xxxxxxxxx",
"sfRole": "xxxxxxxx"
}
df = spark.read.format('snowflake').option(**options).option('query', 'select * from mytable').load()
我收到如下错误:
TypeError: option() got an unexpected keyword argument 'sfUrl'
我按照 this link 上的说明进行操作。我不明白为什么它失败了。有谁知道哪里出了问题?
将 sfUrl 更改为 sfURL,然后测试此操作。
我正在尝试将雪花数据库 table 中的数据读入数据块。下面是我的代码:
options = {
"sfUrl": "xxxxxx.snowflakecomputing.com",
"sfUser": "xxxxxxx",
"sfPassword": "xxxx",
"sfDatabase": "xxxxxxx",
"sfSchema": "xxxxxxx",
"sfWarehouse": "xxxxxxxxx",
"sfRole": "xxxxxxxx"
}
df = spark.read.format('snowflake').option(**options).option('query', 'select * from mytable').load()
我收到如下错误:
TypeError: option() got an unexpected keyword argument 'sfUrl'
我按照 this link 上的说明进行操作。我不明白为什么它失败了。有谁知道哪里出了问题?
将 sfUrl 更改为 sfURL,然后测试此操作。