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

Balance Sheet format #11

Open
mattarderne opened this issue Mar 6, 2020 · 0 comments
Open

Balance Sheet format #11

mattarderne opened this issue Mar 6, 2020 · 0 comments

Comments

@mattarderne
Copy link

We’ve used Stitch to load data into Snowflake using the Stitch CODAT tap.

The resulting JSON loaded into Snowflake seems squashed,with the structure below. The accountID being NULL and the VALUE giving what looks like an “accounting account” and not a GBP value. I'm guessing the schema is just flattening the JSON response and then inserting it?

Anyone else struggling with this or have a better way of dealing with this?

tap-codat output:

"assets": [
      {
        "accountId": null,
        "name": "Assets",
        "name_0": "Assets",
        "value": 212201
      },
      {
        "accountId": null,
        "name": "Fixed Assets",
        "name_0": "Assets",
        "name_1": "Fixed Assets",
        "value": 212201
      },

From CODAT, the api response should be formatted as follows:

{
  "currency": "GBP",
  "reports": [
    {
      "date": "2020-01-31T00:00:00Z",
      "assets": {
        "name": "Assets",
        "value": 212201.00,
        "items": [
          {
            "name": "Fixed Assets",
            "value": 212201.0,
            "items": [
              {
                "name": "Property",
                "value": 212201.0,
                "items": [
                  {
                    "accountId": "0010",
                    "name": "Investment",
                    "value": 212201.0,
                    "items": []
                  }
                ]
              }
            ]
          },
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