-
Notifications
You must be signed in to change notification settings - Fork 638
JsonDocument support added YQL-17658 #1306
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
Conversation
⚪
|
⚪
|
YQL-17658 fix |
case NUdf::EDataSlot::DyNumber: | ||
res.IsString = true; break; | ||
case NUdf::EDataSlot::JsonDocument: | ||
res.IsString = true; break; | ||
case NUdf::EDataSlot::String: | ||
res.IsString = true; break; | ||
case NUdf::EDataSlot::Utf8: |
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.
Надо убрать default из этого switch, что бы компилятор ловил появление новых типов
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.
Там как раз в момент появления новых типов в default срабатывает проверка. Типы там динамически передаются в виде списка типов колонок.
case NUdf::EDataSlot::DyNumber: | ||
res.IsString = true; break; | ||
case NUdf::EDataSlot::JsonDocument: | ||
res.IsString = true; break; | ||
case NUdf::EDataSlot::String: | ||
res.IsString = true; break; | ||
case NUdf::EDataSlot::Utf8: |
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.
Зачем одинаковый код по разными case? res.IsString = true; break;
можно один раз написать сразу для нескольких типов
⚪
|
⚪
|
⚪
|
⚪
|
JsonDocument support added YQL-17658