I am trying to check if the data exists in a snowflake table
'''
conn = sf.connect(user=snow_username, password=snow_password, account=snow_account,
wharehouse=snow_wharehouse)
cur = conn.cursor()
query = "Use Database testDatabase"
cur.execute(query)
video_id = "5XDBVX9cAAw"
channel_name = "test_channel"
query = (f""" SELECT video_id FROM {channel_name} WHERE video_id = {video_id};""")
cur.execute(query)
cur.fetchone()
''' but I get the following error, I am not sure what's wrong as I am able insert data into the table.
ProgrammingError: 001003 (42000): SQL compilation error: syntax error line 1 at position 47 unexpected 'XDBVX9cAAw'.