Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Using Python In Alteryx

berno11
5 - Atom

Hi, I have a project that I am working on whereby I need to parse a sql query into alteryx using text input tool. Once this is done, I need to extract the main SELECT output elements from this query followed by their source elements. This workflow will be used as a macro for my coworkers that need to have their sql read via alteryx. Can somebody suggest a python code or a code that I can use to automate this process. Thanks in advance

4 REPLIES 4
dreldrel
8 - Asteroid

For your case, sqlglot is a recommended library because it can handle many SQL dialects and lets you extract column lineage. You can use this in your python tool. If this helps, please like the comments

berno11
5 - Atom

Thanks dreldrel for your response. I will try it out and report on my outcome.

berno11
5 - Atom

I do not have admin capabilities at my organization. what is the best way to navigate around this blockage if I want to utilize sqlglot?

 

abacon
12 - Quasar

@berno11 Is using Python a requirement in this project? If I am understanding your question correctly, you could probably use the alteryx app functionalities to build an interactive application that takes a SQL query from the users and passes into the workflow.

 

Bacon

Labels
Top Solution Authors