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

Better YDB Mapping Defaults (opt-in) #29

Merged
merged 5 commits into from
Feb 21, 2024

Conversation

nvamelichev
Copy link
Collaborator

No description provided.

@nvamelichev nvamelichev requested a review from lavrukov February 19, 2024 19:25
@nvamelichev nvamelichev self-assigned this Feb 19, 2024
…`ChangefeedEntity` has `initialScan=true`
…se don't honor the `@Column` annotation

...Stop using these methods in all tests but the `YqlTypeAllTypesTest`
…Instant <-> TIMESTAMP. Make Duration<->INTERVAL mapping the default

Please call `YqlPrimitiveType.useRecommendedMappingFor(STRING, ENUM, TIMESTAMP)` in all new projects.
This will become the default in a future version of YOJ.
@nvamelichev nvamelichev force-pushed the better-ydb-mapping-defaults-opt-in branch from a7d14ee to af36fa9 Compare February 19, 2024 19:35
* @param fieldValueTypes field value types to use the new mapping for
*/
@ExperimentalApi(issue = "https://github.com/ydb-platform/yoj-project/issues/20")
public static void useRecommendedMappingFor(FieldValueType... fieldValueTypes) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: looks little bit strange: useLegacyMappingFor is deprecated, but useRecommendedMappingFor is experimental. Where is a correct way to set mappings?

@lavrukov lavrukov self-assigned this Feb 21, 2024
@nvamelichev nvamelichev merged commit 944be15 into main Feb 21, 2024
1 check passed
@nvamelichev nvamelichev deleted the better-ydb-mapping-defaults-opt-in branch February 21, 2024 15:13
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