Skip to content

Commit 7ecf9dd

Browse files
committed
document athena transfer function
1 parent 9853e48 commit 7ecf9dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cid/helpers/quicksight/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def _athena_to_qs_type(col, athena_type):
106106
if 'decimal' in athena_type: return {'Name': col, 'Type': 'DECIMAL', 'SubType': 'FIXED'}
107107
if 'double' in athena_type: return {'Name': col, 'Type': 'DECIMAL', 'SubType': 'FIXED'}
108108
if 'real' in athena_type: return {'Name': col, 'Type': 'DECIMAL', 'SubType': 'FIXED'} #is it better fit for fixed vs float Decimals
109-
print(f'WARNING: unknown type {athena_type} for {col}')
109+
logger.warning(f'Unknown Athena type {athena_type} for {col}. Will use STRING. This might affect dashboard.')
110110
return {'Name': col, 'Type': 'STRING'}
111111

112112
dataset = deepcopy(dataset)

0 commit comments

Comments
 (0)