Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

  • enable --stats-jsonl by default when generating stats
  • correct INPUT_TABLE_NAME sentinel const
  • moved overly verbose LLM API JSON get/response debug to trace
  • removed excess newline before starting REASONING section
  • just propagate file operations instead of overly verbose error msg
  • when running Polars SQL with sqlp command, set --infeer-len to 10000
  • better error handling when Polars SQL fails

- enable `--stats-jsonl` by default when generating stats
- correct INPUT_TABLE_NAME sentinel const
- moved  overly verbose LLM API JSON get/response debug to trace
- removed excess newline before starting REASONING section
- just propagate file operations instead of overly verbose error msg
- when running Polars SQL with sqlp command, set `--infeer-len` to 10000
- better error handling when Polars SQL fails
@jqnatividad jqnatividad requested a review from Copilot September 3, 2025 11:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refines the describegpt command's Polars SQL generation functionality by improving defaults, error handling, and debugging output. The changes focus on making the tool more robust and user-friendly when working with SQL query generation and execution.

  • Enable --stats-jsonl by default for better structured stats output
  • Improve error handling and messaging for Polars SQL execution failures
  • Optimize debug logging and SQL execution parameters

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/cmd/describegpt.rs Updates default stats options, fixes constant naming, improves error handling for SQL execution, and optimizes debug logging
resources/describegpt_defaults.toml Adds SQL function restrictions and date operation guidance for Polars SQL

@jqnatividad jqnatividad merged commit 7abc237 into master Sep 3, 2025
15 of 16 checks passed
@jqnatividad jqnatividad deleted the describegpt-polars-tweaks branch September 3, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants