Jacob Ukokobili
02/07/2025, 11:34 AMversion: 1
default_environment: dev
project_id: 5dbc4547-80ec-4699-9dc3-2dc4a1569786
environments:
- name: dev
- name: staging
- name: prod
plugins:
  extractors:
  - name: tap-mysql
    variant: transferwise
    pip_url: 
      git+<https://github.com/transferwise/pipelinewise.git#subdirectory=singer-connectors/tap-mysql>
    config:
      session_sqls:
        - SET @@session.max_execution_time=0       # No limit
        - SET @@session.net_read_timeout=7200      # 1 hour
        - SET @@session.net_write_timeout=7200     # 1 hour
          # Set other session variables to the default PPW ones
        - SET @@session.time_zone="+0:00"
        - SET @@session.wait_timeout=28800
        - SET @@session.innodb_lock_wait_timeout=7200
    select:
      - '*.*'          # Select all tables first
      - '!*_audit*' 
    metadata:
      '*.*':    # Apply metadata to all non-excluded tables
        replication-method: LOG_BASED
        replication-key: id
        id:
          is-replication-key: true
  mappers:
  - name: meltano-map-transformer
    variant: meltano
    pip_url: git+<https://github.com/MeltanoLabs/meltano-map-transform.git>
    executable: meltano-map-transform
    mappings:
    - name: rename_stream
      config:
        stream_maps:
          '*':
            __alias__: __stream_name__ .replace("smartterm-", "")
  loaders:
  - name: target-bigquery
    variant: z3z1ma
    pip_url: git+<https://github.com/z3z1ma/target-bigquery.git>
    config:
      schema_resolver_version: 1
      denormalized: true
      upsert: true
      partition_granularity: month
      fail_fast: false
      timeout: 3600
      flattening_enabled: true
      flattening_max_depth: 3
      stream_maps:
        "*":  # Apply this transformation to all streams
          "*":  # Apply this transformation to all properties (columns) in the stream
            __else__: "__NULL__"  # Replace NULL values with "__NULL__"Reuben (Matatika)
02/10/2025, 9:40 AMI’m not getting the right number of recordsIs there a pattern you can identify for the data you are missing?
It also takes forever to buildAs in the EL process, or are you trying to Dockerise the whole project?
Jacob Ukokobili
02/11/2025, 4:04 PM├── Makefile
├── containers
│   ├── Dockerfile
│   └── requirements.txt
├── data_pipeline
│   ├── README.md
│   ├── analyze
│   ├── extract
│   ├── load
│   ├── meltano.yml
│   ├── notebook
│   ├── orchestrate
│   ├── output
│   ├── plugins
│   │   ├── extractors
│   │   │   └── tap-mysql--transferwise.lock
│   │   ├── loaders
│   │   │   └── target-bigquery--z3z1ma.lock
│   │   └── mappers
│   │       └── meltano-map-transformer--meltano.lock
│   ├── requirements.txt
│   └── transform
└── docker-compose.ymlJacob Ukokobili
02/11/2025, 5:34 PM2025-02-11T17:27:59.837423Z [info     ] 2025-02-11 17:27:59,834 | INFO     | target-bigquery      | Setting up clients cmd_type=elb consumer=True job_name=dev:tap-mysql-to-target-bigquery:test name=target-bigquery producer=False run_id=82931c72-da02-44f5-ba7a-df0c6252b737 stdio=stderr string_id=target-bigquery
2025-02-11T17:27:59.838866Z [info     ] 2025-02-11 17:27:59,835 | WARNING  | target-bigquery      | ACTIVATE_VERSION message received but not implemented by this target. Ignoring. cmd_type=elb consumer=True job_name=dev:tap-mysql-to-target-bigquery:test name=target-bigquery producer=False run_id=82931c72-da02-44f5-ba7a-df0c6252b737 stdio=stderr string_id=target-bigquery
2025-02-11T17:27:59.975044Z [info     ] 2025-02-11 17:27:59,974 | WARNING  | target-bigquery      | ACTIVATE_VERSION message received but not implemented by this target. Ignoring. cmd_type=elb consumer=True job_name=dev:tap-mysql-to-target-bigquery:test name=target-bigquery producer=False run_id=82931c72-da02-44f5-ba7a-df0c6252b737 stdio=stderr string_id=target-bigquery
2025-02-11T17:27:59.975865Z [info     ] 2025-02-11 17:27:59,975 | INFO     | target-bigquery      | Target 'target-bigquery' completed reading 116 lines of input (109 records, (0 batch manifests, 4 state messages). cmd_type=elb consumer=True job_name=dev:tap-mysql-to-target-bigquery:test name=target-bigquery producer=False run_id=82931c72-da02-44f5-ba7a-df0c6252b737 stdio=stderr string_id=target-bigqueryReuben (Matatika)
02/12/2025, 7:58 PMACTIVATE_VERSION message received but not implemented by this target.
> 
Pretty sure it's not related to your issue(s), but if you are interested: https://hub.meltano.com/singer/docs/#activate-versionReuben (Matatika)
02/12/2025, 8:10 PMmeltano invoke tap-mysql > tap.out
in tap.out, you should see some STATE messages that have key_properties defined - these should be the same as the primary keys in your MySQL tables, and should be used by the SQL target in the destination tables too.Reuben (Matatika)
02/12/2025, 8:11 PM