我抓取了.csv文件和抓取器创建表,但创建为字符串而不是时间戳记的时间列是我的Yaml
AWSGlueTimeSeriesCsvCrawler2:
Type: AWS::Glue::Crawler
Properties:
Name: ggCrawler
Role: !GetAtt AWSGlueServiceRole.Arn
Classifiers:
- !Ref GlueRawClicksClassifier
DatabaseName: !Ref AWSGlueFileDatalakeDatabase
TablePrefix: "${{file(./src/config/config.yml):CsvCrawlerTablePrefix}}"
Targets:
S3Targets:
- Path: "s3://${{file(./src/config/config.yml):CrawledBucketName}}/time_series"
SchemaChangePolicy:
UpdateBehavior: "UPDATE_IN_DATABASE"
DeleteBehavior: "DEPRECATE_IN_DATABASE"
GlueRawClicksClassifier:
Type: "AWS::Glue::Classifier"
Properties:
GrokClassifier:
Name: gg
Classification: csv
GrokPattern: "%{x:timestamp:timestamp}"
CustomPatterns: "x %{DATE_US}[T ]%{HOUR}:?%{MINUTE}"