#!/usr/bin/env python
# coding: utf-8

def getPre2022(session, startDate, endDate, cols='"*"', security='NULL'):
    script = 'getPre2022({}, {}, {}, {})'.format(startDate, endDate, cols, security)
    return session.run(script)

def getRecentYear(session, startDate='NULL', endDate='NULL', security='NULL'):
    script = 'getRecentYear({}, {}, {})'.format(startDate, endDate, security)
    return session.run(script)

def getFirst10Col(session, startDate, endDate, cols='NULL', security='NULL'):
    script = 'getFirst10Col({}, {}, {}, {})'.format(startDate, endDate, cols, security)
    return session.run(script)

def getCond(session, startDate, endDate, cols='NULL', security='NULL'):
    script = 'getCond({}, {}, {}, {})'.format(startDate, endDate, cols, security)
    return session.run(script)