hello_dev
07/06/2022, 1:47 PMtap-mysql only INCREMENTAL, LOG_BASED, and FULL TABLE replication methods are supported , I got this error when i user tap-myql , can help me ?
version: 1
default_environment: dev
project_id: 11e34570-bed3-4835-961c-aa7a1a44a2aa
plugins:
extractors:
- name: tap-mysql
variant: transferwise
pip_url: pipelinewise-tap-mysql
loaders:
- name: target-postgres
variant: transferwise
pip_url: pipelinewise-target-postgres
environments:
- name: dev
config:
plugins:
extractors:
- name: tap-mysql
config:
host: 127.0.0.1
database: test
user: test
filter_dbs: test
select:
- '*.*'
metadata:
test_user:
replication-method: FULL_TABLE
loaders:
- name: target-postgres
config:
host: 127.0.0.1
database: test
user: test
default_target_schema: public
- name: staging
- name: prodhello_dev
07/06/2022, 2:02 PMpat_nadolny
07/06/2022, 2:28 PMtest_user as the only stream with a replication-method set, could you be syncing more than just that stream? Maybe try updating to the below example to set the replication method for all streams to FULL_TABLE then once its working you can update to more fine grain settings, like what your had before.
metadata:
"*":
replication-method: FULL_TABLEhello_dev
07/06/2022, 2:49 PMmetadata:
"*":
replication-method: FULL_TABLEhello_dev
07/06/2022, 2:51 PM{
"streams": [
{
"tap_stream_id": "test-test_user",
"table_name": "test_user",
"schema": {
"properties": {
"id": {
"inclusion": "automatic",
"minimum": -2147483648,
"maximum": 2147483647,
"type": [
"null",
"integer"
]
},
"name": {
"inclusion": "available",
"maxLength": 255,
"type": [
"null",
"string"
]
}
},
"type": "object"
},
"stream": "test_user",
"metadata": [
{
"breadcrumb": [],
"metadata": {
"selected-by-default": false,
"database-name": "test",
"row-count": 1,
"is-view": false,
"table-key-properties": [
"id"
],
"selected": true
}
},
{
"breadcrumb": [
"properties",
"id"
],
"metadata": {
"selected-by-default": true,
"sql-datatype": "int(11)",
"datatype": "int",
"selected": true
}
},
{
"breadcrumb": [
"properties",
"name"
],
"metadata": {
"selected-by-default": true,
"sql-datatype": "varchar(255)",
"datatype": "varchar",
"selected": true
}
}
],
"selected": true
}
]
}hello_dev
07/06/2022, 2:54 PMmeltano invoke tap-mysql
2022-07-06T14:46:47.864678Z [info ] Environment 'dev' is active
time=2022-07-06 22:46:53 name=tap_mysql level=INFO message=Server Parameters: version: 5.7.38, wait_timeout: 28800, innodb_lock_wait_timeout: 3600, max_allowed_packet: 134217728, interactive_timeout: 28800
time=2022-07-06 22:46:54 name=tap_mysql level=INFO message=Server SSL Parameters(blank means SSL is not active): [ssl_version: ], [ssl_cipher: ]
{"type": "STATE", "value": {"currently_syncing": "test-test_user"}}
time=2022-07-06 22:46:58 name=tap_mysql level=INFO message=Beginning sync for InnoDB table test.test_user
time=2022-07-06 22:46:58 name=singer level=INFO message=METRIC: {"type": "timer", "metric": "job_duration", "value": 0.49161529541015625, "tags": {"job_type": "sync_table", "database": "test", "table": "test_user", "status": "failed"}}
time=2022-07-06 22:46:58 name=tap_mysql level=CRITICAL message=only INCREMENTAL, LOG_BASED, and FULL TABLE replication methods are supported
Traceback (most recent call last):
File "/meltano-projects/my-meltano-project/.meltano/extractors/tap-mysql/venv/bin/tap-mysql", line 10, in <module>
sys.exit(main())
File "/meltano-projects/my-meltano-project/.meltano/extractors/tap-mysql/venv/lib/python3.7/site-packages/tap_mysql/__init__.py", line 443, in main
raise exc
File "/meltano-projects/my-meltano-project/.meltano/extractors/tap-mysql/venv/lib/python3.7/site-packages/tap_mysql/__init__.py", line 440, in main
main_impl()
File "/meltano-projects/my-meltano-project/.meltano/extractors/tap-mysql/venv/lib/python3.7/site-packages/tap_mysql/__init__.py", line 429, in main_impl
do_sync(mysql_conn, args.config, args.catalog, state)
File "/meltano-projects/my-meltano-project/.meltano/extractors/tap-mysql/venv/lib/python3.7/site-packages/tap_mysql/__init__.py", line 383, in do_sync
config['engine']
File "/meltano-projects/my-meltano-project/.meltano/extractors/tap-mysql/venv/lib/python3.7/site-packages/tap_mysql/__init__.py", line 354, in sync_non_binlog_streams
raise Exception("only INCREMENTAL, LOG_BASED, and FULL TABLE replication methods are supported")
Exception: only INCREMENTAL, LOG_BASED, and FULL TABLE replication methods are supportedpat_nadolny
07/06/2022, 2:59 PMhello_dev
07/06/2022, 3:07 PM*meltano invoke tap-mysql* @pat_nadolnyhello_dev
07/06/2022, 3:10 PMpat_nadolny
07/06/2022, 3:35 PMdouwe_maan
07/06/2022, 3:49 PMdouwe_maan
07/06/2022, 3:50 PMmetadata and select properties out of `environments and directly under the top-level plugin definitions, under pip_urlpat_nadolny
07/06/2022, 3:55 PMversion: 1
default_environment: dev
project_id: 11e34570-bed3-4835-961c-aa7a1a44a2aa
plugins:
extractors:
- name: tap-mysql
variant: transferwise
pip_url: pipelinewise-tap-mysql
select:
- '*.*'
metadata:
'*':
replication-method: FULL_TABLE
loaders:
- name: target-postgres
variant: transferwise
pip_url: pipelinewise-target-postgres
environments:
- name: dev
config:
plugins:
extractors:
- name: tap-mysql
config:
host: 127.0.0.1
database: test
user: test
filter_dbs: test
loaders:
- name: target-postgres
config:
host: 127.0.0.1
database: test
user: test
default_target_schema: public
- name: staging
- name: prodhello_dev
07/07/2022, 3:39 AMmeltano config tap-mysql set _metadata '*' replication-method FULL_TABLE what is generated is wrong
https://docs.meltano.com/concepts/plugins#metadata-extrahello_dev
07/07/2022, 11:20 AMmeltano select * also generated is wrongedgar_ramirez_mondragon
07/07/2022, 12:07 PMwhat is generated is wrong
Can you share the output of both commands and what is generated incorrectly in them? They might both be related to the issue linked above in the thread if environments are at play
pat_nadolny
07/07/2022, 12:21 PMhello_dev
07/07/2022, 12:48 PM