aws-samples / aws-samples/aws-aj-BlogPosts

按照Blog 部署起来无法创建athena 表

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1
Forks
2
Avg merge
3m
Merged PRs (30d)
1

Description

错误信息:
建语句:
CREATE OR REPLACE VIEW "aws_health_view" AS SELECT DISTINCT
"year",
"month",
"day",
"eventarn",
"service",
"communicationid",
"eventregion",
"eventtypecode",
"eventtypecategory",
date_format(date_parse(regexp_replace("starttime", ' GMT$', ''),'%a, %e %b %Y %H:%i:%s'), '%Y-%m-%d-%H:%i') AS event_starttime,
date_format(date_parse(regexp_replace("endtime", ' GMT$', ''),'%a, %e %b %Y %H:%i:%s'), '%Y-%m-%d-%H:%i') AS event_endtime,
date_format(date_parse(regexp_replace("lastupdatedtime", ' GMT$', ''),'%a, %e %b %Y %H:%i:%s'), '%Y-%m-%d-%H:%i') AS event_lastupdatedtime,
"language",
"latestdescription",
"entityvalue" AS "affected_resource",
"deprecatedversion",
(CASE WHEN (endtime IS NOT NULL) THEN 'Closed' ELSE 'Open' END) AS event_status
FROM
"Table Name"
GROUP BY 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17

错误信息:

line 20:3: Table '12311000012312312.aws-health-event-records.table name' does not exist
此查询在“aws-health-event-records”数据库上运行,除非查询进行了限定。

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the blog deployment instructions and the Athena database/table setup referenced by the failing CREATE VIEW statement. Confirm which table name the query is expected to use, then verify that the required table exists and that the view can be created successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, sql
Domain
cloud, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.