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

Fix/binary field schemas #8

Merged
merged 2 commits into from
Oct 24, 2019
Merged

Fix/binary field schemas #8

merged 2 commits into from
Oct 24, 2019

Conversation

dmosorast
Copy link
Contributor

Description of change

https://stitchdata.atlassian.net/browse/SUP-910

We are converting binary fields to strings that have a length double + 2 of the actual length reported by MSSQL. For example, a binary(4) is 4 bytes wide, which in hex translates to 0xF0F0F0F0, which is 10 characters long. This fails validation, since the maxLength on the generated schema is set to the MSSQL value of 4.

This PR removes the maxLength from these data types, since they aren't providing much value beyond rejection, and it's cleaner than arbitrary arithmetic that's bound to the specific transformation that we currently have.

QA steps

  • automated tests passing
    • Updated datatyping discovery tests to reflect this change
  • manual qa steps passing (list below)
    • None performed

Risks

Low, this makes the schema more permissive, rather than less.

Rollback steps

  • revert this branch

@KAllan357 KAllan357 self-requested a review October 24, 2019 16:56
@dmosorast dmosorast merged commit dd21074 into master Oct 24, 2019
@dmosorast dmosorast deleted the fix/binary-field-schemas branch October 24, 2019 18:16
@dmosorast dmosorast mentioned this pull request Oct 24, 2019
2 tasks
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

Successfully merging this pull request may close these issues.

2 participants