当我从 SQL Server 获取数据时,我使用 pyspark 2.4.4 com.microsoft.sqlserver.jdbc.SQLServerException: The "variant" data type is not supported.
需要做什么?来解决这个问题。我读了这个。但是我不理解。
编辑:以下是我用来创建错误消息的代码:
for i in df['name']: mssql_df = spark.read.format("jdbc") \
.option("url", "jdbc:sqlserver://SERVERNAME:1433;databaseName=DB;integratedSecurity=true") \
.option("dbtable", "[" + i + "]") \
.option("driver", 'com.microsoft.sqlserver.jdbc.SQLServerDriver').load()
Run Code Online (Sandbox Code Playgroud) 我想更改 Jira 上项目问题的状态。状态是Open,我想将其设为固定。我的网址是 PUT https://jiradbg-sandbox.deutsche-boerse.de/rest/api/latest/issue/PID-XX
{
"update": {
"fields":{
"status": [
{
"set": "Fixed"
}
]
}
}
}
Run Code Online (Sandbox Code Playgroud)
响应是:
{
"errorMessages": ["Can not deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: org.apache.catalina.connector.CoyoteInputStream@5de98556; line: 3, column: 9]
(through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"update\"])"]
}
Run Code Online (Sandbox Code Playgroud)