Parsing poorly structured CSV data #118
aodhan-domhnaill
started this conversation in
General
Replies: 1 comment
-
You can use the > csvq --allow-uneven-fields --no-header 'select * from `file_path.csv`'
+----+----+----+------+------+
| c1 | c2 | c3 | c4 | c5 |
+----+----+----+------+------+
| A | 1 | 2 | 3 | NULL |
| A | 4 | 5 | 6 | NULL |
| B | 1 | 2 | NULL | NULL |
| B | 3 | 4 | NULL | NULL |
| B | 5 | 6 | NULL | NULL |
| C | 6 | 7 | 8 | 9 |
+----+----+----+------+------+ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have CSV that looks like this,
Basically someone decided to append different dimension data together
I'm trying this to read line by line,
How would I split each line into columns?
Beta Was this translation helpful? Give feedback.
All reactions