You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
делаю source_type как строку
и вызываю
получается указатель на строку
named.Required("source_type", &source_type),
получаю ошибку incorrect source types PRIMITIVE_TYPE_ID_UNSPECIFIED
"tx: non-retryable error occurred on attempt No.1 (idempotent=false): scan row failed: incorrect source types PRIMITIVE_TYPE_ID_UNSPECIFIED at github.com/ydb-platform/ydb-go-sdk/v3/internal/table/scanner.(*valueScanner).setString(scanner.go:753) at github.com/ydb-platform/ydb-go-sdk/v3/internal/table.do.func1(retry.go:54) at github.com/ydb-platform/ydb-go-sdk/v3/internal/table.do.retryBackoff.func2(retry.go:85) at github.com/ydb-platform/ydb-go-sdk/v3/retry.Retry(retry.go:314) at github.com/ydb-platform/ydb-go-sdk/v3/internal/table.(*Client).Do(client.go:658)"
делаю source_type как указатель на строку
получается указатель на указатель на строку
named.Optional("source_type", &source_type),
так работает
вопрос?
что я неправильно понимаю?
вроде как Optional это для типов которые созданны как Option?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://ydb.tech/docs/ru/reference/ydb-sdk/example/go/
Подскажите по ГО СДК. вопрос такой
создал таблицу с
source_type Utf8, -- не опциональный
пытаюсь его сосканить в переменную
делаю source_type как строку
и вызываю
получается указатель на строку
named.Required("source_type", &source_type),
получаю ошибку incorrect source types PRIMITIVE_TYPE_ID_UNSPECIFIED
"tx: non-retryable error occurred on attempt No.1 (idempotent=false): scan row failed: incorrect source types PRIMITIVE_TYPE_ID_UNSPECIFIED at github.com/ydb-platform/ydb-go-sdk/v3/internal/table/scanner.(*valueScanner).setString(scanner.go:753) at github.com/ydb-platform/ydb-go-sdk/v3/internal/table.do.func1(retry.go:54) at github.com/ydb-platform/ydb-go-sdk/v3/internal/table.do.retryBackoff.func2(retry.go:85) at github.com/ydb-platform/ydb-go-sdk/v3/retry.Retry(retry.go:314) at
github.com/ydb-platform/ydb-go-sdk/v3/internal/table.(*Client).Do(client.go:658)
"делаю source_type как указатель на строку
получается указатель на указатель на строку
named.Optional("source_type", &source_type),
так работает
вопрос?
что я неправильно понимаю?
вроде как Optional это для типов которые созданны как Option?
Beta Was this translation helpful? Give feedback.
All reactions