-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
test: Add InputGenerator for TimestampWithTimeZone #12481
base: main
Are you sure you want to change the base?
Conversation
This pull request was exported from Phabricator. Differential Revision: D70362561 |
✅ Deploy Preview for meta-velox canceled.
|
cc4c78d
to
99978b2
Compare
…#12481) Summary: This diff adds an implementation of AbstractInputGenerator for the TimestampWithTimeZone type. It uses a random int64_t for the number of milliseconds (there may be overflow since we only have 52 bits for the milliseconds but that doesn't matter since it's random anyway) and selects a random time zone ID from a list of valid time zone IDs provided by TimeZoneMap. Differential Revision: D70362561
This pull request was exported from Phabricator. Differential Revision: D70362561 |
velox_add_library(velox_presto_types_fuzzer_utils | ||
TimestampWithTimeZoneInputGenerator.cpp) | ||
|
||
velox_link_libraries( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
velox_add_library(velox_presto_types_fuzzer_utils | |
TimestampWithTimeZoneInputGenerator.cpp) | |
velox_link_libraries( | |
add_library(velox_presto_types_fuzzer_utils | |
TimestampWithTimeZoneInputGenerator.cpp) | |
target_link_libraries( |
A fuzzer util library doesn't need to be part of the main libvelox.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to, but (correct me if I'm wrong) since the AbstractInputGenerator is part of the CustomTypeFactories, TimestampWithTimeZoneRegistration.cpp needs to link against TimestampWithTimeZoneInputGenerator.h in order to construct the TimestampWithTimeZoneInputGenerator, so if it's not included in the main libvelox we run into linker errors. Similarly velox/common/fuzzer is included in the main libvelox and it contains ConstrainedGenerators.h which is just a bunch of fuzzers (AbstractInputGenerators).
99978b2
to
697a430
Compare
…#12481) Summary: This diff adds an implementation of AbstractInputGenerator for the TimestampWithTimeZone type. It uses a random int64_t for the number of milliseconds (there may be overflow since we only have 52 bits for the milliseconds but that doesn't matter since it's random anyway) and selects a random time zone ID from a list of valid time zone IDs provided by TimeZoneMap. Differential Revision: D70362561
This pull request was exported from Phabricator. Differential Revision: D70362561 |
697a430
to
06250b5
Compare
…#12481) Summary: This diff adds an implementation of AbstractInputGenerator for the TimestampWithTimeZone type. It uses a random int64_t for the number of milliseconds (there may be overflow since we only have 52 bits for the milliseconds but that doesn't matter since it's random anyway) and selects a random time zone ID from a list of valid time zone IDs provided by TimeZoneMap. Differential Revision: D70362561
This pull request was exported from Phabricator. Differential Revision: D70362561 |
…#12481) Summary: This diff adds an implementation of AbstractInputGenerator for the TimestampWithTimeZone type. It uses a random int64_t for the number of milliseconds (there may be overflow since we only have 52 bits for the milliseconds but that doesn't matter since it's random anyway) and selects a random time zone ID from a list of valid time zone IDs provided by TimeZoneMap. Differential Revision: D70362561
06250b5
to
85a4e08
Compare
This pull request was exported from Phabricator. Differential Revision: D70362561 |
…#12481) Summary: This diff adds an implementation of AbstractInputGenerator for the TimestampWithTimeZone type. It uses a random int64_t for the number of milliseconds (there may be overflow since we only have 52 bits for the milliseconds but that doesn't matter since it's random anyway) and selects a random time zone ID from a list of valid time zone IDs provided by TimeZoneMap. Differential Revision: D70362561
85a4e08
to
ccfae3e
Compare
This pull request was exported from Phabricator. Differential Revision: D70362561 |
Summary:
This diff adds an implementation of AbstractInputGenerator for the TimestampWithTimeZone
type. It uses a random int64_t for the number of milliseconds (there may be overflow since we
only have 52 bits for the milliseconds but that doesn't matter since it's random anyway) and
selects a random time zone ID from a list of valid time zone IDs provided by TimeZoneMap.
Differential Revision: D70362561