Skip to content

Commit

Permalink
fix default time columns (#1030)
Browse files Browse the repository at this point in the history
* fix default time columns
  • Loading branch information
iakov-aws authored Nov 16, 2024
1 parent b8a5d62 commit d59c529
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cfn-templates/cid-cfn.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AWSTemplateFormatVersion: '2010-09-09'
Description: Deployment of Cloud Intelligence Dashboards v4.0.4
Description: Deployment of Cloud Intelligence Dashboards v4.0.5
Metadata:
AWS::CloudFormation::Interface:
ParameterGroups:
Expand Down Expand Up @@ -1781,7 +1781,7 @@ Resources:
- LambdaLayerBucketPrefixIsManaged
- !FindInMap [RegionMap, !Ref 'AWS::Region', BucketName]
- !Sub '${LambdaLayerBucketPrefix}-${AWS::Region}' # Region added for backward compatibility
S3Key: 'cid-resource-lambda-layer/cid-4.0.4.zip' #replace version here if needed
S3Key: 'cid-resource-lambda-layer/cid-4.0.5.zip' #replace version here if needed
CompatibleRuntimes:
- python3.10
- python3.11
Expand Down
2 changes: 1 addition & 1 deletion cid/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '4.0.4'
__version__ = '4.0.5'

2 changes: 1 addition & 1 deletion cid/helpers/cur.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def get_type_of_column(self, column: str, version=None):
if column.endswith('_date') and not column.endswith('_to_date'):
return 'TIMESTAMP'
if column.endswith('_time') and (version or self.version) == '2':
return 'TIMESTAMP'
return 'STRING' # yes, they are string
special_cases = {
"cost_category": "MAP",
"discount": "MAP",
Expand Down

0 comments on commit d59c529

Please sign in to comment.