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

[enhancement] support more TiDB data types #44

Open
zhangjinpeng87 opened this issue Aug 2, 2023 · 2 comments
Open

[enhancement] support more TiDB data types #44

zhangjinpeng87 opened this issue Aug 2, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@zhangjinpeng87
Copy link
Collaborator

Because snowflake doesn't support all data types in MySQL/TiDB database, we need a way to automatically transfer these unsupported data types from the upstream into some similar types downstream.

Snowflake unsupported data types:

  • bit
  • enum
  • set
@eugen-korentsov
Copy link

Same issue with bigquery.

@eugen-korentsov
Copy link

[2024/01/17 09:21:44.427 +00:00] [ERROR] [snapshot.go:176] ["Failed to load snapshot"] [table=database.source_estates] [error="Unsupported TiDB type enum"] [errorVerbose="Unsupported TiDB type enum\ngithub.com/pingcap-inc/tidb2dw/pkg/bigquerysql.GetBigQueryColumnTypeString\n\t/home/eugene/work/database/tidb2dw/pkg/bigquerysql/types.go:47\ngithub.com/pingcap-inc/tidb2dw/pkg/bigquerysql.GetBigQueryColumnString\n\t/home/eugene/work/database/tidb2dw/pkg/bigquerysql/ddl.go:128\ngithub.com/pingcap-inc/tidb2dw/pkg/bigquerysql.GenCreateSchema\n\t/home/eugene/work/database/tidb2dw/pkg/bigquerysql/sql.go:74\ngithub.com/pingcap-inc/tidb2dw/pkg/bigquerysql.(*BigQueryConnector).CopyTableSchema\n\t/home/eugene/work/database/tidb2dw/pkg/bigquerysql/connector.go:99\ngithub.com/pingcap-inc/tidb2dw/replicate.(*SnapshotReplicateSession).Run\n\t/home/eugene/work/database/tidb2dw/replicate/snapshot.go:88\ngithub.com/pingcap-inc/tidb2dw/replicate.StartReplicateSnapshot\n\t/home/eugene/work/database/tidb2dw/replicate/snapshot.go:175\ngithub.com/pingcap-inc/tidb2dw/cmd.Replicate.func1\n\t/home/eugene/work/database/tidb2dw/cmd/core.go:271\nruntime.goexit\n\t/usr/lib/go-1.21/src/runtime/asm_amd64.s:1650\ngithub.com/pingcap/errors.AddStack\n\t/home/eugene/go/pkg/mod/github.com/pingcap/[email protected]/errors.go:174\ngithub.com/pingcap/errors.Trace\n\t/home/eugene/go/pkg/mod/github.com/pingcap/[email protected]/juju_adaptor.go:15\ngithub.com/pingcap-inc/tidb2dw/pkg/bigquerysql.GetBigQueryColumnString\n\t/home/eugene/work/database/tidb2dw/pkg/bigquerysql/ddl.go:130\ngithub.com/pingcap-inc/tidb2dw/pkg/bigquerysql.GenCreateSchema\n\t/home/eugene/work/database/tidb2dw/pkg/bigquerysql/sql.go:74\ngithub.com/pingcap-inc/tidb2dw/pkg/bigquerysql.(*BigQueryConnector).CopyTableSchema\n\t/home/eugene/work/database/tidb2dw/pkg/bigquerysql/connector.go:99\ngithub.com/pingcap-inc/tidb2dw/replicate.(*SnapshotReplicateSession).Run\n\t/home/eugene/work/database/tidb2dw/replicate/snapshot.go:88\ngithub.com/pingcap-inc/tidb2dw/replicate.StartReplicateSnapshot\n\t/home/eugene/work/database/tidb2dw/replicate/snapshot.go:175\ngithub.com/pingcap-inc/tidb2dw/cmd.Replicate.func1\n\t/home/eugene/work/database/tidb2dw/cmd/core.go:271\nruntime.goexit\n\t/usr/lib/go-1.21/src/runtime/asm_amd64.s:1650"]

@zhangjinpeng87 zhangjinpeng87 added the enhancement New feature or request label Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants