sql - AWS Athena Cast Works in Select Statement but Fails with Where Clause
问题描述
I have a very simple query:
select cast(Field1 as bigint) as lit
from vw_GH
That works like a charm. However, when I add a where clause like so:
select cast(Field1 as bigint) as lit
from vw_GH
where Field2 > SomeNumber
It gives me an INVALID_CAST_ARGUMENT error. Since this is a big data task it's not quick to identify potential errors in a set of millions of records. Any ideas why this is happening?
解决方案
推荐阅读
- reactjs - 使用 github pages 部署时 React App Blank 的第一页
- multidimensional-array - 在fortran中通过hdf5写入一大块MPI分布式数据
- swift - 使用过滤器使用 MVVM 在 SwiftUI 中重新加载数据
- python - 我删除了日期字段,但我仍然在 django 中收到 datetime_re.match(value) TypeError
- google-sheets - Duplicating/triplicating rows of data
- linux - 从 AWS Lambda 在 EC2 Linux 实例中运行脚本
- opengl - 不按位将 2 个整数编码为 RGBA
- python - 列表在python中没有正确连接
- sql - 查询列值小于当前行值的行数
- python - 聚类:如果因素不独立,会有问题吗?如何评价模型?