A Python utility for importing CSV files into IBM Netezza database using named pipes and automatic data type detection.
- Automatic CSV delimiter detection (supports |, ;, \t, ,)
- Smart data type inference for columns
- Handles common date/time formats
- Supports large files through streaming
- Progress monitoring during import
- UTF-8 encoding support
- BIGINT: For integer values
- NUMERIC: For decimal numbers
- DATE: For dates in YYYY-MM-DD format
- DATETIME: For timestamps
- NVARCHAR: For text fields
python main.py filename [-l LOG_DIR] [-d DRIVER]
Arguments:
filename Path to CSV file to import
-l, --log_dir Log directory path (default: C:\log)
-d, --driver Driver to use (default: dotnet)
python main.py data.csv -l C:\netezza\logs -d dotnet
The tool will:
- Analyze the CSV file to determine column types
- Generate CREATE TABLE SQL statement
- Create a named pipe
- Stream data through the pipe to Netezza
- Python 3.7+
- pywin32 package
- Windows OS (due to named pipes implementation)
- IBM Netezza client tools