File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -147,12 +147,12 @@ def _append_timestamp_to_column_name(self, column):
147
147
column -- Dictionary containing column data, such as "name" and
148
148
"api-name".
149
149
"""
150
- old_name = '{} ' .format (column ['api-name' ])
150
+ old_name = '"{}" ' .format (column ['api-name' ])
151
151
152
152
timestamp = self ._get_timestamp ()
153
153
column ['name' ] += timestamp
154
154
column ['api-name' ] += timestamp
155
- new_name = '{} ' .format (column ['api-name' ])
155
+ new_name = '"{}" ' .format (column ['api-name' ])
156
156
157
157
self .column_translation [old_name ] = new_name
158
158
@@ -254,10 +254,15 @@ def _translate_column_names(self, json_data):
254
254
Return:
255
255
JSON data with new column name.
256
256
"""
257
+
258
+ def _translate_column_names (self , json_data ):
257
259
data_string = json .dumps (json_data )
258
260
259
261
for old_name , new_name in self .column_translation .items ():
260
262
data_string = data_string .replace (old_name , new_name )
263
+ if "post-process" and "map" in data_string :
264
+ column_map_name = '"time-series-integer-test-column'
265
+ data_string = data_string .replace (column_map_name , new_name [:- 1 ])
261
266
262
267
return json .loads (data_string )
263
268
You can’t perform that action at this time.
0 commit comments