import re


def strip_hive_comments(hive_query):
    """Strip the comments in a Hive query."""
    regex = r'--.*'
    flags = re.MULTILINE | re.IGNORECASE
    return re.sub(regex, '', hive_query, flags)