Zillion nlp allows using normal text to execute sql.
result = wh.execute_text("sales for Partner A")
print(result.df) # Pandas DataFrame
The above example shows a case of using the nlp capability to execute a query.
The execute_text callable should be constructing an SQL command before it's executed.
Wondering if there if the raw SQL can be exposed before executing it.
Here is some pseudocode of what I'm thinking.
q = wh.create_nlp_q("sales Partner A")
print(q)
# SELECT sales from ...
Zillion nlp allows using normal text to execute sql.
The above example shows a case of using the nlp capability to execute a query.
The
execute_textcallable should be constructing an SQL command before it's executed.Wondering if there if the raw SQL can be exposed before executing it.
Here is some pseudocode of what I'm thinking.