Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Use specific error for exceptions raised by create_scalar_function

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, sqlite
Domain
databases

Research direction

Start by reading the comment in the register_function code and reproducing an exception from create_scalar_function in deterministic mode. Compare the exception with sqlite3.NotSupportedError and inspect how APSW errors are currently captured. Done means raising a specific APSW error where available, or documenting and escalating the missing error through the upstream APSW project.

Written by the indexing model from the issue text.

Description

Typically APSW has more precise errors than Sqlite3, this is one of the exceptions.

When using create_scalar_function in deterministic mode, it is possible to throw an exception based on Sqlite constraints. In sqlite3 this raises a sqlite.NotSupportedError, but there is nothing specific in APSW. In fact, we're not sure what error is raised, so we lump it under apsw.Error. Some better things we can do:

  1. Figure the specific error and capture/raise that as necessary
  2. If there is no specific error, open a ticket, submit a PR to the upstream APSW library

[!NOTE]
This is documented as a comment in the register_function code within this library

Dominant language
Python
Stars
3
Forks
3
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AnswerDotAI/apswutils

All issues in AnswerDotAI/apswutils

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.