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

TypeError: unsupported operand type(s) for +: 'int' and 'str' #93

Open
rks0nax opened this issue Apr 18, 2023 · 0 comments
Open

TypeError: unsupported operand type(s) for +: 'int' and 'str' #93

rks0nax opened this issue Apr 18, 2023 · 0 comments

Comments

@rks0nax
Copy link
Contributor

rks0nax commented Apr 18, 2023

When using LOG_BASED replication method "replication-method": "LOG_BASED", having a projection that's specified as string raises the following error

TypeError: unsupported operand type(s) for +: 'int' and 'str'

Example:

{
  "streams": [
    {
      ...
      "metadata": [
        {
            ...
            "selected": true,
            "replication-method": "LOG_BASED",
            // This will fail
            "tap-mongodb.projection": "{\"shipType\": \"$ship.type\", \"packSize\": \"$pack.type\"}",
            // This will not
            "tap-mongodb.projection": "{\"shipType\": 1, \"packSize\": 1}"
          }
        }
      ],
      ...
      "schema": {
        "type": "object"
      }
    }
  ]
}
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

1 participant