sdk/python/feast/infra/online_stores/astra.py
def _create_cql_insert_record(key_space: str,
                              table_name: str,
                              column_names: List[str]
                              ) -> str:
    """
    This is general function to insert a record in table
    """
    assert len(column_names) > 0, "Columns are empty."

    cql_insert_record = "INSERT INTO " + key_space + "." + table_name + " ("
    cql_insert_record += ", ".join(column_names) + ") VALUES ("
    for col in column_names:
        cql_insert_record += "?, "
    cql_insert_record = cql_insert_record[:-2]
    cql_insert_record += ");"

    return cql_insert_record

    This is general function to insert a record in table
    
This is general function to insert a record in table
This is general function to insert a record in table
def _create_cql_insert_record(key_space: str,
                              table_name: str,
                              column_names: List[str]
                              ) -> str:
    assert len(column_names) > 0, "Columns are empty."
    cql_insert_record = "INSERT INTO " + key_space + "." + table_name + " ("
    cql_insert_record += ", ".join(column_names) + ") VALUES ("
    for col in column_names:
        cql_insert_record += "?, "
    cql_insert_record = cql_insert_record[:-2]
    cql_insert_record += ");"
    return cql_insert_record
def _create_cql_insert_record ( key_space : str , table_name : str , column_names : List [ str ] ) -> str : assert len ( column_names ) > 0 , "Columns are empty." cql_insert_record = "INSERT INTO " + key_space + "." + table_name + " (" cql_insert_record += ", " . join ( column_names ) + ") VALUES (" for col in column_names : cql_insert_record += "?, " cql_insert_record = cql_insert_record [ : - 2 ] cql_insert_record += ");" return cql_insert_record
This is general function to insert a record in table
This is general function to insert a record in table
"""
    This is general function to insert a record in table
    """
key_space
str
table_name
str
column_names
List[str]