运行 从 AppMaker 中的服务器脚本查询计算的 SQL 模型时出错

Error when running query against a calculated SQL model from server script in AppMaker

当尝试从服务器脚本对 SQL 计算的(云 SQL)模型执行查询时,我得到 "Error: Unsupported datasource type: SQL" 并且它指向我调用 run() 在查询对象上。
我在文档中没有看到任何说明无法执行此类查询的内容(我没有在 SQL 查询中使用关键字 属性,它只是纯粹的 SQL分组依据、左连接、排序依据...)。

var moreRecentDocsQ = app.models.more_recent_docs.newQuery(); // `more_recent_docs` is a SQL calculated model
var moreRecentDocs = moreRecentDocsQ.run(); // this throws the error

从前端,我能够毫无问题地检索这个计算模型的项目(使用 app.datasources.more_recent_docs.load())。

有人遇到这个问题吗?

感谢您的帮助

当前计算的 SQL 数据源由于错误无法从服务器脚本调用。我们将致力于修复。

我能想到的 运行 任意 SQL 的唯一解决方法是使用 Apps Script Jdbc service.

对于给您带来的不便,我们深表歉意。