Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow int and uint values in float type fields #1006

Closed
wants to merge 2 commits into from

Conversation

akshatagarwl
Copy link
Contributor

Fixes #989.

Description

allows int and uint values even when a field type is float

Using the same example mentioned in #989 (comment)

image
image

This PR has:

  • been tested to ensure log ingestion and log query works.
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added documentation for new or modified features or behaviors.

Copy link
Contributor

github-actions bot commented Nov 28, 2024

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@akshatagarwl
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@akshatagarwl
Copy link
Contributor Author

recheck

nitisht added a commit to parseablehq/.github that referenced this pull request Nov 28, 2024
@akshatagarwl
Copy link
Contributor Author

One of the unit tests is failing. Checking that

@de-sh
Copy link
Contributor

de-sh commented Nov 28, 2024

I have opened a PR on your fork which will fix the test, performing test to validate our concerns

@de-sh
Copy link
Contributor

de-sh commented Dec 6, 2024

@akshatagarwl we looked deeper into this issue and were able to figure out that for dynamic types we need to default to float for all numbers during ingestion itself. That will necessitate changes to this function:

pub fn update_field_type_in_schema(

Please open a new PR, closing this.

@de-sh de-sh closed this Dec 6, 2024
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.

allow type casting in dynamic schema
2 participants