(val: str)
return "'{0}'".format(
        val.replace("\\", "\\\\")
        .replace("'", "\\'")
        .replace("\r", "\\r")
        .replace("\n", "\\n")
        .replace("\t", "\\t")
    )
HiveParamEscaper

    https://github.com/dropbox/PyHive/blob/master/pyhive/hive.py
HiveParamEscaper
HiveParamEscaper
def _escape_hive(val: str) -> str:
    """HiveParamEscaper

    https://github.com/dropbox/PyHive/blob/master/pyhive/hive.py"""
    return "'{0}'".format(
        val.replace("\\", "\\\\")
        .replace("'", "\\'")
        .replace("\r", "\\r")
        .replace("\n", "\\n")
        .replace("\t", "\\t")
    )
def _escape_hive ( val : str ) -> str : return "'{0}'" . format ( val . replace ( "\\" , "\\\\" ) . replace ( "'" , "\\'" ) . replace ( "\r" , "\\r" ) . replace ( "\n" , "\\n" ) . replace ( "\t" , "\\t" ) )