【问题标题】:nodejs-snow-connector Not being Reliably called from Google Cloud Run Containernodejs-snow-connector 没有被 Google Cloud Run Container 可靠地调用
【发布时间】:2022-11-03 09:04:33
【问题描述】:

尝试调用创建/删除然后插入雪花表。在本地运行良好,上传到 Cloud Run 容器后,使用连接器的调用仅删除表或不进行调用。

  const conn = connection.connect();
  conn.execute( {sqlText: 'CREATE OR REPLACE TABLE DEMO_DB.PUBLIC.SHEETS (TS string, NAME string, DAYS string, DIET string, PAY string);'});
  setTimeout(() => {
    conn.execute({sqlText: 'INSERT INTO DEMO_DB.PUBLIC.SHEETS(TS, NAME, DAYS, DIET, PAY) values(?, ?, ?, ?, ?)', binds: rows});
    }, 2000);
}

【问题讨论】:

  • 从雪花查询历史记录中,您是否看到从 GC 运行容器运行时其他操作的任何错误?
  • 我有标准会员。对于 ACCESS_HISTORY,您需要企业+。查询历史仅让您获取从 snowsight 执行的查询。

标签: node.js snowflake-cloud-data-platform google-cloud-run


【解决方案1】:

如果无法查看数据库的 ACCESS_HISTORY,则无法检查脚本运行时该表是如何被访问的。为了解决这个问题,我在链中进一步回溯并清理数据,因此不需要在表上调用替换/创建。对表的所有调用均已正确设置并且运行良好。这花费了我时间,所以我很遗憾没有升级并了解升级它所发生的任何事情。我的两分钱......升级值得你的理智。

【讨论】:

    猜你喜欢
    • 2019-02-27
    • 2021-12-07
    • 2020-07-14
    • 2014-08-06
    • 2020-10-10
    • 2020-05-29
    • 2021-05-31
    • 1970-01-01
    • 2020-01-25
    相关资源
    最近更新 更多