Skip to content

Types: Improve support for FLOAT type, converging to FLOAT vs. DOUBLE#265

Merged
bgunebakan merged 6 commits into
mainfrom
types-improve-float
Jun 16, 2026
Merged

Types: Improve support for FLOAT type, converging to FLOAT vs. DOUBLE#265
bgunebakan merged 6 commits into
mainfrom
types-improve-float

Conversation

@amotl

@amotl amotl commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: eb7bb2c5-6bd1-4510-b74f-5b537654a574

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch types-improve-float

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@amotl amotl force-pushed the types-improve-float branch from b2bf840 to 2a96fad Compare June 4, 2026 21:09

@kneth kneth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Are Nan, Inf and -Inf also supported? If so, should it be tested?

@amotl

amotl commented Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Hm. Maybe good idea, maybe not applicable here. No idea. If you agree with the change, because it solves a relevant obstacle in supertask and possibly others, please merge at your disposal. We can also ask @matriv to have a second look. 🙏

Comment on lines +20 to +31
float_double_data = {
"col_1": [19556.88, 629414.27, 51570.0, 2933.52, 20338.98],
"col_2": [
15379.920000000002,
1107140.42,
8081.999999999999,
1570.0300000000002,
29468.539999999997,
],
}
float_double_df = pd.DataFrame.from_dict(float_double_data)

@amotl amotl Jun 8, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Are Nan, Inf and -Inf also supported? If so, should it be tested?

@kneth suggested to test for special values. Maybe relevant tests exist already, otherwise let's do it?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I've added a new one to test "Nan, Inf and -Inf" values, all stored as NULL in CrateDB so they all read back as NaN in pandas.

Comment thread pyproject.toml Outdated
"cratedb-toolkit[testing]",
"dask[dataframe]",
"pandas<2.4",
"pandas[test]<2.4",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Let's also validate with pandas 3.x from the beginning, i.e. use pandas[test]<3.1 here?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think Separate PR is better, pandas upgrade is not in the scope of the PR.

@bgunebakan bgunebakan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you.

@bgunebakan bgunebakan merged commit f9d1d98 into main Jun 16, 2026
36 of 37 checks passed
@bgunebakan bgunebakan deleted the types-improve-float branch June 16, 2026 16:22
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.

3 participants