Skip to content

Extracting the raw SQL command without executing it #15

@yemaney

Description

@yemaney

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions