def write_auto_transformations()

in python/pipelines/pipeline_ops.py [0:0]


def write_auto_transformations(uri: str, column_names: List[str]):
    """
    Generates a list of auto-transformation dictionaries for the given column names and writes them to a Google Cloud Storage (GCS) bucket.

    Args:
        uri: The GCS URI of the file to write to.
        column_names: A list of column names.

    Raises:
        ValueError: If the column_names list is empty.
    """

    if not column_names:
        raise ValueError("column_names must not be empty")

    transformations = generate_auto_transformation(column_names)
    write_to_gcs(uri, json.dumps(transformations))

    logging.info("Transformations config written: {}".format(uri))