-
Notifications
You must be signed in to change notification settings - Fork 105
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 the lower case data in disclosure.fec_fitem_sched_x #4137
Comments
Jerry reply: |
Jerry reply (01/07/2020): |
Jerry and Joseph had searched f_itemtable in Oracle with the text fields with lower case to get the sub_id. Both f_item table and the corresponding nml_sched_x tables had been updated in Oracle to convert the lower/mixed case to upper case. The changes had been propagated to ALL postgresql databases through regular nightly GoldenGate and Java program process. f_item_sched_a_2001_2002: 844501 f_item_sched_b_2001_2002: 201035 f_item_sched_e: 100386 It had been verified that autovacuum had been invoked by database engine after the updates finished. This indicated that the statistics of the table had been updated to reflect the updated data. |
The original API call described in issue #4111 |
Ref: Ann Arbor missing from individual contributions search
#4111
The data in disclosure.fec_fitem_sched_x should be all upper case. but we found there are small portion of data is lower/upper mix case. We need convert them to upper case.
example query:
select * FROM disclosure.fec_fitem_sched_a
LEFT OUTER JOIN ofec_committee_history_mv AS ofec_committee_history_mv_1 ON disclosure.fec_fitem_sched_a.cmte_id = ofec_committee_history_mv_1.committee_id AND disclosure.fec_fitem_sched_a.two_year_transaction_period = ofec_committee_history_mv_1.cycle
LEFT OUTER JOIN ofec_committee_history_mv AS ofec_committee_history_mv_2 ON disclosure.fec_fitem_sched_a.clean_contbr_id = ofec_committee_history_mv_2.committee_id AND disclosure.fec_fitem_sched_a.two_year_transaction_period = ofec_committee_history_mv_2.cycle
WHERE disclosure.fec_fitem_sched_a.is_individual = true
AND disclosure.fec_fitem_sched_a.contbr_city IN ('Ann Arbor')
ORDER BY disclosure.fec_fitem_sched_a.contb_receipt_dt DESC
for now, we found lower case data for these 4 sub_id, we may have more.
sub_id=3061920110009408407
4070620041039961342
4070620041039961337
4070720041039976479
The text was updated successfully, but these errors were encountered: