def _get_offline_details(fg_name, sagemaker_session, s3_uri=None):
    """Get offline feature group details

    Args:
        fg_name (str): Feature group name
        sagemaker_session (sagemaker.Session()): SageMaker session
        s3_uri (str, optional): Where to store offline query results. Defaults to None.

    Returns:
        tuple: Offline feature group table, database, and temporary uri for query results
    """
    _data_catalog_config = sagemaker_session.sagemaker_client.describe_feature_group(
        FeatureGroupName=fg_name
    )["OfflineStoreConfig"]["DataCatalogConfig"]
    _table = _data_catalog_config["TableName"]
    _database = _data_catalog_config["Database"]

    if s3_uri is None:
        s3_uri = f"s3://{sagemaker_session.default_bucket()}/offline-store"
    _tmp_uri = f"{s3_uri}/query_results/"
    return _table, _database, _tmp_uri