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

DATETIME & TIMESTAMP support in stringToQualValue function #86

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

itaywaisman
Copy link

This commit adds extensive test cases for the stringToQualValue function in filter_to_quals_test.go, covering various column types and input formats. The tests include validation for:

  • Boolean values
  • Integer and double values
  • String and JSON values
  • Timestamp and datetime parsing with multiple formats
  • Error handling for invalid inputs

The corresponding implementation in main.go.tmpl has been updated to support parsing multiple time formats and Unix timestamps.

Please let me know if the support I added for multiple datetime and timestamp formats is needed.
Also GO is not my main language and I got help from Claude - any code style comments are much appreciated!

This commit adds extensive test cases for the stringToQualValue function in filter_to_quals_test.go, covering various column types and input formats. The tests include validation for:
- Boolean values
- Integer and double values
- String and JSON values
- Timestamp and datetime parsing with multiple formats
- Error handling for invalid inputs

The corresponding implementation in main.go.tmpl has been updated to support parsing multiple time formats and Unix timestamps.
Copy link
Collaborator

@pskrbasu pskrbasu left a comment

Choose a reason for hiding this comment

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

@itaywaisman Can you add an example with time format to the README as a part of this change?

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.

2 participants