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

Update type information to be more in line with USQL #1529

Merged
merged 11 commits into from Feb 1, 2024

Conversation

csjh
Copy link
Member

@csjh csjh commented Jan 26, 2024

Description

Changes type information from _evidenceColumnTypes to type inference based on column's JS type
-> also adds slightly better fmt error handling when the value column is string/bool

Doesn't rip out _evidenceColumnTypes in its entirety yet since it's still used in some places but probably worth expanding on later

Checklist

Copy link

changeset-bot bot commented Jan 26, 2024

🦋 Changeset detected

Latest commit: bf66005

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@evidence-dev/core-components Patch
@evidence-dev/evidence Patch
@evidence-dev/components Patch
evidence-test-environment Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Jan 26, 2024

Deploy Preview for evidence-development-workspace ready!

Name Link
🔨 Latest commit bf66005
🔍 Latest deploy log https://app.netlify.com/sites/evidence-development-workspace/deploys/65bbba6d527bc40007e9d74c
😎 Deploy Preview https://deploy-preview-1529--evidence-development-workspace.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

vercel bot commented Jan 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2024 3:37pm

@archiewood
Copy link
Member

Am I right in feeling like this should be tested pretty exhaustively?

@ItsMeBrianD ItsMeBrianD added the ready-to-merge PRs that are approved and have all checks passing label Feb 1, 2024
@csjh
Copy link
Member Author

csjh commented Feb 1, 2024

Am I right in feeling like this should be tested pretty exhaustively?

IMO it's more the previous inferColumnTypes that would've deserved type tests, now we're just mirroring the returned duckdb-wasm types.

@csjh csjh merged commit d95600a into main Feb 1, 2024
15 checks passed
@csjh csjh deleted the string-formatted-as-date branch February 1, 2024 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge PRs that are approved and have all checks passing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Strings are forced to UTC dates in datatables, which can lead to incorrect timezones
3 participants