Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.

NumberFormatException running schema-guru ddl with this schema #122

Open
alexanderdean opened this issue Dec 17, 2015 · 6 comments
Open
Assignees
Labels
Milestone

Comments

@alexanderdean
Copy link
Contributor

{
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "minimum": 0,
      "maximum": 32767
    },
    "eventTime": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9223372036854776000
    }
  }
}
@chuwy
Copy link
Contributor

chuwy commented Dec 17, 2015

What type do we need to use? DECIMAL won't handle it.

@alexanderdean
Copy link
Contributor Author

Isn't 9223372036854776000 the flag value for BIGINT?

@chuwy
Copy link
Contributor

chuwy commented Dec 17, 2015

To compare:
9223372036854775807 - BIGINT
9223372036854776000

@alexanderdean
Copy link
Contributor Author

  1. Go to http://schemaguru.snowplowanalytics.com/#
  2. Paste in { "eventTime":1450310135000 }
  3. Hit Submit
  4. Get:
{
  "type": "object",
  "properties": {
    "eventTime": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9223372036854776000
    }
  },
  "additionalProperties": false
}

@fblundun
Copy link

Maybe json-bigint would help?

@alexanderdean
Copy link
Contributor Author

Not implemented, pushing back... @chuwy please check all tickets have been completed or pushed back before opening a release PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants