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

Make determination of output attribute column data types more robust #189

Open
theroggy opened this issue Dec 19, 2022 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@theroggy
Copy link
Collaborator

theroggy commented Dec 19, 2022

In case of eg. an empty result or (partial) null values, sometimes some data types are not preserved. Eg. datetime column type is only preserved if the first row of fetched of the input file is actually a datetime.

@theroggy theroggy self-assigned this Dec 19, 2022
@theroggy theroggy added this to the 0.7.0 milestone Dec 19, 2022
@theroggy
Copy link
Collaborator Author

Note to self: this way I can determine the placeholders in a string:

from string import Formatter
fieldnames = [fname for _, fname, _, _ in Formatter().parse(yourstring) if fname]

@theroggy theroggy added the enhancement New feature or request label Dec 19, 2022
@theroggy theroggy removed this from the 0.7.0 milestone Mar 5, 2023
@theroggy theroggy changed the title Make determination of output data types more robust Make determination of output attribute column data types more robust Mar 15, 2023
@theroggy theroggy removed their assignment Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant