ting-hong-shieh opened a new issue, #1691:
URL: https://github.com/apache/datafusion-python/issues/1691

   ## Description
   
   `AGENTS.md` requires every public Python function to carry a usage example, 
but
   none of the public functions in `python/datafusion/unparser.py` have one:
   
   * `Dialect.default`
   * `Dialect.mysql`
   * `Dialect.postgres`
   * `Dialect.sqlite`
   * `Dialect.duckdb`
   * `Unparser.plan_to_sql`
   * `Unparser.with_pretty`
   
   The gap matters more here than in most modules, because the reason `Dialect`
   exists is that different dialects render the same plan differently, and 
nothing
   in the current documentation shows that difference. The existing test 
unparses
   `SELECT 1`, which is identical across all four dialects.
   
   Two smaller documentation problems sit in the same file:
   
   * the `Dialect` class summary reads `"DataFusion data catalog."`
   * `with_pretty` is documented as `"Set the pretty flag."`, which does not say
     what the flag changes.
   
   ## Expected Behavior
   
   All public functions in the module carry doctest-style usage examples,
   consistent with the rest of the package and executed by pytest's
   `--doctest-modules`.
   
   ## Suggested Improvement
   
   Add examples that unparse the same plan through each dialect so the 
differences
   are visible, and correct the two docstrings noted above.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to