Skip to content

Commit 5f50bd0

Browse files
authored
Merge pull request #8 from avdata99/fix_freq_table
Fix freq table
2 parents f2485e8 + bd1d1ed commit 5f50bd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ckanext/datapusher_plus/jobs.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,10 +1382,15 @@ def _push_to_datastore(task_id, input, dry_run=False, temp_dir=None):
13821382
value TEXT,
13831383
count INTEGER,
13841384
percentage FLOAT,
1385+
extra TEXT,
13851386
PRIMARY KEY (field, value, count)
13861387
)
13871388
"""
13881389
).format(freq_table, freq_table)
1390+
# Could not copy frequency data to database:
1391+
# extra data after last expected column
1392+
# CONTEXT: COPY 737a3aad-c1c8-4507-8411-2dc6ca176f84-druf-freq,
1393+
# line 2: "country,Afghanistan,6,2.52101,1"
13891394
)
13901395

13911396
# Copy frequency CSV to /tmp directory for debugging purposes

0 commit comments

Comments
 (0)