Kotlin / Kotlin/dataframe

Customize defaults of print with environment variables

Open
#1,879 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.1k
Forks
83
Avg merge
4d 12h
Merged PRs (30d)
30

Description

While discussing new default value for columnTypes in print, it's very apparent that peoples preferences can vary
Arguably calling something as simple as print() with custom argument each time is bothersome
Taking inspiration from Polars - they have a whole lot of environment variables to customize rendering in console. And suprisingly i could not find parameters for functions, so in their case this seems like the only option
https://pola-rs.github.io/r-polars/man/polars_envvars.html

In DataFrame we can create priority:
Explicit argument - Environment variable - Parameter default value

One will be able to set KOTLIN_DATAFRAME_FMT_VALUE_LIMIT, 100 once in gradle and have it work everywhere in the program

It's a bit unusual practice, but let's consider it

Contributor guide

Open the contributing guide

Research direction

Start by locating the DataFrame print functions and the current columnTypes and other default parameter definitions. Trace how print arguments are resolved, then define and verify the precedence of explicit arguments, environment variables such as KOTLIN_DATAFRAME_FMT_VALUE_LIMIT, and parameter defaults.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
data
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.