from typing import List


def _get_shared_columns(source_columns: List[str], destination_columns: List[str]) -> List[str]:
    """ Return the list of columns contained in both lists. """

    shared_columns = [c for c in destination_columns if c in source_columns]
    if not shared_columns:
        raise RuntimeError("No shared columns between database objects.")
    return shared_columns