The following is a list of known issues, and how to solve them.
Sometimes it is easer to just import the CSV into a Database so you can work with different queries and analyze the types of data you are working with. Here are some helpful tips for doing that kind of work.
First, you'll need to create the Schema File to import:
pdp util --sql > /path/to/schema.sqlNext, you'll need to import that into the database:
source /path/to/schema.sql;Now that you have the pdp_raw_data table created, you can import the CSV directly into it:
-- Update Setting to Support Local Imports
SET GLOBAL local_infile = 1;
-- Purge Old Data
TRUNCATE TABLE `pdp_raw_data`;
-- Import New Data from CSV
LOAD DATA LOCAL INFILE '/path/to/pdp-csv-processor/src/police_data_portal.csv'
INTO TABLE `pdp_raw_data`
FIELDS TERMINATED BY ',' ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 LINES;NOTE: Make sure you update the file paths in the sample code above, e.g. change /path/to/ to your actual path.

