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

Ydb: type casting PG<->YQL was broken in latest YDB #684

Closed
asmyasnikov opened this issue Jan 26, 2024 · 1 comment
Closed

Ydb: type casting PG<->YQL was broken in latest YDB #684

asmyasnikov opened this issue Jan 26, 2024 · 1 comment

Comments

@asmyasnikov
Copy link
Contributor

asmyasnikov commented Jan 26, 2024

PG compatibility layer in latest (trunk) version of YDB was fixed type casting YQL <-> PG
Thats why Uint64 type is not compatible with PG numeric types now
Log:

ERROR [ydb/migrations] 2024/01/23 13:19:33 goose run: non-retryable error occurred on attempt No.1 (idempotent=false): streamResult.NextResultSetErr(): connError{node_id:1,address:'distbuild-worker-prod-w-128c-klg-511-klg-049:2408'}: operation/GENERIC_ERROR (code = 400080, address = distbuild-worker-prod-w-128c-klg-511-klg-049:2408, issues = [{#1030 'Type annotation' [{1:1 => 'At function: RemovePrefixMembers, At function: PgSelect' [{1:1 => 'Type is not compatible to PG: Uint64'}]}]}]) at github.com/ydb-platform/ydb-go-sdk/v3/internal/conn.(*grpcClientStream).RecvMsg(grpc_client_stream.go:117) at github.com/ydb-platform/ydb-go-sdk/v3/internal/scripting.(*Client).streamExecute.func2(client.go:262) at github.com/ydb-platform/ydb-go-sdk/v3/internal/table/scanner.NewStream(result.go:121) at github.com/ydb-platform/ydb-go-sdk/v3/internal/table/scanner.NewStream(result.go:122) at github.com/ydb-platform/ydb-go-sdk/v3/internal/scripting.(*Client).StreamExecute.func1(client.go:195) at github.com/ydb-platform/ydb-go-sdk/v3/retry.Retry(retry.go:313) at github.com/ydb-platform/ydb-go-sdk/v3/internal/scripting.(*Client).StreamExecute(client.go:201) at github.com/ydb-platform/ydb-go-sdk/v3/internal/scripting.(*Client).StreamExecute(client.go:205) at github.com/ydb-platform/ydb-go-sdk/v3/internal/xsql.(*conn).queryContext(conn.go:375)
ERROR [ydb/migrations] subprocess ['/storage/d/b/1f0c91af-32ec797f-51c44e9a-6746d-0/2d/test-2954222234915964834-2AC/9cf5/contrib/go/patched/goose/cmd/goose/goose', '-dir', '/storage/d/b/1f0c91af-32ec797f-51c44e9a-6746d-0/2d/test-2954222234915964834-2AC/9cf5/environment/arcadia/taxi/uservices/userver/samples/ydb_service/tests/../ydb/migrations', 'ydb', 'grpc://localhost:2408/local?go_query_mode=scripting&go_fake_tx=scripting&go_query_bind=declare,numeric', 'up'] exited with code 1
@asmyasnikov asmyasnikov changed the title Ydb support broken in latest YDB Ydb: type casting PG<->YQL was broken in latest YDB Jan 26, 2024
@mfridman
Copy link
Collaborator

mfridman commented Jan 29, 2024

Should be fixed by #685, thanks for putting up a fix @asmyasnikov 🎉

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

No branches or pull requests

2 participants