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
Column Lengths Don't Reflect Actual Data #68
Comments
class FilernameCd(CalAccessBaseModel):
DATE_FIELDS = ('EFFECT_DT',)
xref_filer_id = models.CharField(
max_length=7L,
db_column='XREF_FILER_ID',
db_index=True,
help_text="The external filer id saved in the forms tables"
) $ head -1 filername_cd.csv
"XREF_FILER_ID","FILER_ID","FILER_TYPE","STATUS","EFFECT_DT","NAML","NAMF","NAMT","NAMS","ADR1","ADR2","CITY","ST","ZIP4","PHON","FAX","EMAIL"
$ grep -E "R98\*-\d+" filername_cd.csv | wc -l
609 An example from that "XREF_FILER_ID",....
"R98*-185420615",.... (that's 14 in length, not 7) mysql> SELECT XREF_FILER_ID FROM FILERNAME_CD where XREF_FILER_ID like 'R98*-18%';
+---------------+
| XREF_FILER_ID |
+---------------+
| R98*-18 |
| R98*-18 |
| R98*-18 |
....
+---------------+
29 rows in set (0.00 sec) This list goes on with these issues. Pull request is almost ready... |
Sorry about the hassles. Has the merge in #69 closed the ticket? |
Indeed it has. I'll open another issue if it comes up again. |
Okay. The official documentation from the state does list character lengths if we ever need a source, though I trust your experience with the actual data over any documentation. |
Interesting - It just kept coming up because I think postgres is a bit more strict when it comes to the |
I'm working #38 and the data validation is killing me at every step of the way.
For example in
AcronymsCd
:I'm getting DataErrors when I try to insert into PostgreSQL.
The problem is that the char field isn't long enough to support this acronym.
I'd like to change these column sizes to reflect the actual data, is that something that can be supported?
The text was updated successfully, but these errors were encountered: