feat(bigframes): Support loading avro, orc data by TrevorBergeron · Pull Request #16555 · googleapis/google-cloud-python

Reorder read_avro and read_orc to maintain alphabetical order. Additionally, these should ideally be placed before read_parquet in the file to follow the alphabetical convention used in this module.

def read_avro(
    path: str | IO["bytes"],
    *,
    engine: str = "auto",
) -> bigframes.dataframe.DataFrame:
    return global_session.with_default_session(
        bigframes.session.Session.read_avro,
        path,
        engine=engine,
    )


read_avro.__doc__ = inspect.getdoc(bigframes.session.Session.read_avro)


def read_orc(
    path: str | IO["bytes"],
    *,
    engine: str = "auto",
    write_engine: constants.WriteEngineType = "default",
) -> bigframes.dataframe.DataFrame:
    return global_session.with_default_session(
        bigframes.session.Session.read_orc,
        path,
        engine=engine,
        write_engine=write_engine,
    )


read_orc.__doc__ = inspect.getdoc(bigframes.session.Session.read_orc)