我编写了一个 python 代码,可以从 google 工作表下载数据并将其转换为 csv。我提供了一个谷歌驱动器 ID,它会扫描其中的所有工作表,将它们下载到本地计算机中。我已经运行这个程序很多次了,但是今天我得到了这个错误:
raise APIError(response) gspread.exceptions.APIError: { "error": { "code": 503, "message": "该服务当前不可用。", "status": "UNAVAILABLE" } }
任何意见将不胜感激。
我正在寻找将 Google Analytics 数据(以及历史数据)摄取到 Redshift 的选项。欢迎任何有关工具、API 的建议。我在网上搜索并发现 Stitch 作为 ETL 工具之一,如果您有的话,请帮助我更好地了解此选项和其他选项。
etl google-analytics amazon-redshift google-analytics-firebase data-ingestion
我有一个表,其中金额列有 , 和 $ 符号,例如: $8,122.14 作为值。我想编写一个替换函数来一次性替换该列上的 $ 和 。有什么方法可以在 Redshift 的一次替换中写入多个条件吗?此外,这是数据后处理的一部分,我在替换这些值后将数据从阶段表插入最终表。
我尝试了代码中给出的采取1和2中列出的方法,但都失败了。
采取1:insert into db.stage_table select (coalesce(replace(logging_amount,'$',','),''))) aslogging_amount from db.table;
采取2:insert into db.stage_table select (coalesce(replace(logging_amount,'$',',')) aslogging_amount from db.table;
两人都失败了。
预期结果应该是单个语句中的替换函数。
etl ×1