def parse(self, group_by_stmt):
if not group_by_stmt:<EOL><INDENT>return Resolution.MAX_RESOLUTION<EOL><DEDENT>m = self.GROUP_BY_TIME_PATTERN.match(group_by_stmt)<EOL>if not m:<EOL><INDENT>return None<EOL><DEDENT>value = int(m.group(<NUM_LIT:1>))<EOL>unit = m.group(<NUM_LIT:2>)<EOL>resolution = self.convert_to_seconds(value, unit)<EOL>return max(resolution, Resolution.MAX_RESOLUTION)<EOL>
Extract the data resolution of a query in seconds
E.g. "group by time(99s)" => 99

:param group_by_stmt: A raw InfluxDB group by statement