Working with data often starts outside your primary databases like CSV files, exports, or quick datasets. Apache Superset makes it easy to bring this data into your analytics workflow without needing a full database pipeline.
This is especially useful for:
· Quick data exploration
· Prototyping dashboards
· One-time analysis
· Sharing datasets across teams
But many users miss an important step, CSV upload is disabled by default.
Follow below step-by-step procedure to work with CSV file.
Step 1: Enable CSV Upload Feature
By default, file upload is disabled. To enable it:
Go to Settings → Database Connections
Select your database, Click Edit
Navigate to Advanced → Security, enable: "Allow file uploads to database"
Click Finish button.
Once enabled, the upload option becomes available in the dataset menu.
Step 2: Upload Your CSV File
Go to Datasets, Click the “+” (Plus icon) -> Data -> Upload CSV to Database.
Choose your file.
audit_log.csv
id,user_id,user_name,action,resource_type,resource_id,status,ip_address,user_agent,created_at 1,101,hari.krishna,LOGIN,SYSTEM,NA,SUCCESS,192.168.1.10,Chrome,2026-04-20 09:15:23 2,102,anita.sharma,CREATE,DASHBOARD,2001,SUCCESS,192.168.1.11,Firefox,2026-04-20 09:20:10 3,103,raj.kumar,UPDATE,DATASET,3005,SUCCESS,192.168.1.12,Edge,2026-04-20 09:25:45 4,101,hari.krishna,LOGOUT,SYSTEM,NA,SUCCESS,192.168.1.10,Chrome,2026-04-20 09:30:02 5,104,sneha.reddy,DELETE,CHART,4002,FAILED,192.168.1.13,Safari,2026-04-20 09:35:18 6,105,arjun.nair,ACCESS,DASHBOARD,2003,SUCCESS,192.168.1.14,Chrome,2026-04-20 09:40:55 7,102,anita.sharma,UPDATE,DASHBOARD,2001,SUCCESS,192.168.1.11,Firefox,2026-04-20 09:45:30 8,106,vikram.singh,CREATE,DATASET,3008,SUCCESS,192.168.1.15,Edge,2026-04-20 09:50:12 9,103,raj.kumar,DELETE,DATASET,3005,FAILED,192.168.1.12,Edge,2026-04-20 09:55:44 10,101,hari.krishna,ACCESS,CHART,4001,SUCCESS,192.168.1.10,Chrome,2026-04-20 10:00:00
Superset will automatically:
· Detect column names
· Preview the structure
While uploading, you can configure:
· Database & Schema
· Target Table Name
· Delimiter (default: comma)
· Table behavior (if already exists)
· Null value handling etc.,
Click on Upload button.
Upon successful load of file, reload Datasets page, you can see audit_log table created.
CSV uploads are powerful, but use them wisely:
Ideal for:
· Ad hoc analysis
· Prototyping dashboards
· Small datasets
Avoid for:
· Large-scale production data
· High-performance dashboards
For production use cases, always connect to a proper database for:
· Better performance
· Security
· Scalability
Previous Next Home





No comments:
Post a Comment