INVALID_TABLE_PROPERTY:对于雅典娜上的输入字符串:"0-23"(Property:projection.hour.digits) [英] INVALID_TABLE_PROPERTY: For input string: "0-23" (property: projection.hour.digits) on Athena

查看:0
本文介绍了INVALID_TABLE_PROPERTY:对于雅典娜上的输入字符串:"0-23"(Property:projection.hour.digits)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行此查询时出错

雅典娜查询

SELECT * FROM "db"."thermostat" 
where id='95686' 
and "date" = '2022/03/07'
AND hour =13

投影分区

位于此路径上的数据: S3://bucket/dbname/tablename/id/date=2022/03/07/hour=13/

错误

INVALID_TABLE_PROPERTY:输入字符串:0-23&qot;(Property:projection.hour.digits)(表 数据库恒温器)

表属性

 'projection.enabled' = 'true',
  'projection.id.type' = 'injected', 
  'projection.date.format' = 'yyyy/MM/dd', 
  'projection.date.interval' = '1', 
  'projection.date.interval.unit' = 'DAYS', 
  'projection.date.range' = '2019/11/27, NOW-1DAYS', 
  'projection.date.type' = 'date', 
  'projection.hour.type' = 'integer',
  'projection.hour.range' = '0-23',
  'projection.hour.digits' = '2',

推荐答案

我写了范围 'projection.hour.range' = '0-23'

但它应该是这样的 'projection.hour.range' = '0,23'

这篇关于INVALID_TABLE_PROPERTY:对于雅典娜上的输入字符串:"0-23"(Property:projection.hour.digits)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆