I have a python script that cleans some data from a CSV file using MySQL. I want to turn that script into something that Glue can use, but I am unaware of the SQL syntax that can be used with Glue.
This is the statement from my python / mysql script that I need to adapt:
update_sql = """ UPDATE """ + my_table_name + """
SET identity_LineItemId=NULLIF(identity_LineItemId, ''),
identity_TimeInterval=NULLIF(identity_TimeInterval, ''),
bill_InvoiceId=NULLIF(bill_InvoiceId, ''),
bill_BillingEntity=NULLIF(bill_BillingEntity, ''),
bill_BillType=NULLIF(bill_BillType, ''),
Engagement=NULLIF(Engagement, '') ; """
Also how would I select the database in my Glue script? Does standard SQL work?
Any advice I could get on how to convert this update statement from MySQL to a syntqax that Glue would understand would be appreciated! I am real new to Glue.