GBQ DML无法按条件删除行

GBQ DML unable to delete rows by condition

我正在使用 Python 库 google.cloud.bigquery。通常我使用 DML 根据日期条件删除行并且它工作正常。现在我需要根据另一个条件删除行。我的 table 看起来像这样:

我正在尝试查询:

 DELETE project-290504.table.advertisementresults
WHERE Monthnumber IN('202008','202009')

什么也没发生;没有错误出现,没有统计数据被删除。有趣的是,我已经在 GBQ 的另一个 table 上尝试过这个,完全相同的脚本运行良好。列中作为条件的值是字符串。

完整代码:

dml_query = """
    DELETE project-290504.table.advertisementresults
    WHERE Monthnumber IN('202008','202009')
""" 
    
dml_query_job = client.query(dml_query)

对于这个项目,我只是添加了这样的引号:

dml_query = """
    DELETE `project-290504.table.advertisementresults`
    WHERE Monthnumber IN('202008','202009')
""" 
    
dml_query_job = client.query(dml_query)

我真的不知道为什么在不同的 gbq 项目脚本上没有 `` 也能正常工作。