简体   繁体   English

提供的架构与表不匹配

[英]Provided Schema does not match table

I have a script that I am running successfully in a local machine (PyCharm).我有一个在本地机器 (PyCharm) 上成功运行的脚本。 But when I am adding script to the VM, it is throwing me the error of:但是当我向虚拟机添加脚本时,它抛出了以下错误:

Bad request. The provided schema does not match to the table schema. STRING changed to BYTES. 

Does anyone know why it should happen?有谁知道为什么会发生? I mean, locally everything is working perfect, this issue is popping up when I want to run the file from VM.我的意思是,本地一切正常,当我想从 VM 运行文件时会出现这个问题。

I am using BigQuery.我正在使用 BigQuery。

I was not sure why it was happening in VM and not local.我不确定为什么它发生在 VM 而不是本地。 But just added 2 lines of code to solve it.但是只是添加了2行代码来解决它。

        if isinstance(register_date, bytes):
            register_date = str(register_date).decode("utf-8")

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 DynamoDB:提供的键元素与架构不匹配 - DynamoDB : The provided key element does not match the schema “提供的关键元素与架构不匹配”DynamoDB (boto3) 错误 - “The provided key element does not match the schema” DynamoDB (boto3) error AWS DynamoDB - 提供的关键元素与架构不匹配 - AWS DynamoDB - The provided key element does not match the schema 从 DynamoDB 获取项目时出现“提供的关键元素与架构不匹配”错误 - “The provided key element does not match the schema” error when getting an item from DynamoDB boto dynamodb batch_write和delete_item - '提供的关键元素与架构不匹配' - boto dynamodb batch_write and delete_item — 'The provided key element does not match the schema' Kinesis:我们计算出的请求签名与您提供的签名不匹配 - Kinesis: The request signature we calculated does not match the signature you provided 请求签名与使用Python为Amazon AWS提供的签名不匹配 - Request signature does not match signature provided for Amazon AWS using Python Beam Python 数据流,使用提供的架构写入 BigQuery 表会引发 AttributeError:可能无法将任意值分配给消息 - Beam Python Dataflow, writing to BigQuery table with schema provided throws AttributeError: May not assign arbitrary value tpe to message _meta.local_fields如何与数据库中的表架构不匹配? - How can _meta.local_fields not match the table schema in the database? AWS boto3 关键元素与架构不匹配 - AWS boto3 key element does not match schema
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM