apache / apache/datafusion

Registering custom udf in datafusion-cli could be easier

Open
#23,386 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
9.3k
Forks
2.4k
Avg merge
3d 7h
Merged PRs (30d)
344

Description

### Is your feature request related to a problem or challenge?

It would be nice if we could essentially call `geodatafusion::register(...)`, and reuse
the basic datafusion-cli without a lot of copy/paste code or maintenance burden.

https://github.com/datafusion-contrib/geodatafusion/issues/84

### Describe the solution you'd like

I intend to post a PR where we export most of the current `main_inner` function, from the binary
into the `datafusion-cli` lib, that allows people customizing datafusion-cli with a default `CliSessionContext` to just call into the library for most of the configuration/argument parsing.

### Describe alternatives you've considered

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reading the datafusion-cli binary's current main_inner function and the library API around CliSessionContext. Trace which argument parsing and configuration pieces can be exposed for custom registrations such as geodatafusion::register(...). Done means a custom CLI can reuse the default setup without copying the existing implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.