File: simpleaggregatefunctioncolumn.py

package info (click to toggle)
python-clickhouse-driver 0.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,516 kB
  • sloc: python: 10,950; pascal: 42; makefile: 29; sh: 3
file content (7 lines) | stat: -rw-r--r-- 235 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7


def create_simple_aggregate_function_column(spec, column_by_spec_getter):
    # SimpleAggregateFunction(Func, Type) -> Type
    inner = spec[24:-1].split(',', 1)[1].strip()
    nested = column_by_spec_getter(inner)
    return nested