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
DM-34136: Initial version of Visit and CcdVisit for dp0.2. #47
Conversation
fce5de9
to
c5f7a14
Compare
columns: | ||
- name: visit | ||
'@id': '#Visit.visit' | ||
datatype: long |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MySQL doesn't have the numeric data type long
. For signd 64-bit numbers you need to add the following attribute:
mysql:datatype: BIGINT
For 32-bit numbers:
mysql:datatype: INT
For unsigned types:
mysql:datatype: BIGINT UNSIGNED
or:
mysql:datatype: INT UNSIGNED
- name: physical_filter | ||
'@id': '#Visit.physical_filter' | ||
datatype: char | ||
length: 32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would argue that MySQL-specific type definitions were added for each column of the schema, such as:
mysql:datatype: CHAR(32)
And, perhaps, in case strings are not exactly 32-character long a better option would be:
mysql:datatype: VARCHAR(32)
This would save quite a bit of space for very large tables.
description: '' | ||
- name: ra | ||
'@id': '#Visit.ra' | ||
datatype: double |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mysql:datatype: DOUBLE
Please, provide the following attribute for all columns:
|
I have pushed a new commit, but the fixes it contains are unrelated from the review comments. I think that all of the changes that Igor is asking for are already accounted for in the mysql DDL that Felis generates. You can check this by running
The only remaining issue I see is that Felis doesn't seem to be using the |
271ce0d
to
cd48e37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provided Felise generates the correct MySQL schema from this definition, this PR looks good to me.
No description provided.