sorry about that. CSV functionality had been worked on to integrate the new XQuery 4.0 CSV functions, and this
change of behaviour had inadvertently slipped into 11.7.
However the problem has been fixed recently, and the fix will go into 11.8.
See https://github.com/BaseXdb/basex/pull/2376 for the details.
Best regards,
Gunther
Hi BaseX team,
Has the “header” option on csv:parse changed between BaseX version 11.6 and 11.7?
Here is an example to illustrate what looks like a problem or change. Given a tab separated text file such as this:
aaaa bbbb cccc
a1 b1 c1
a2 b2 c2
This query uses the “header”: “yes” option on csv:parse which should map column names to element names.
"tsv-test.tsv" => file:resolve-path() => file:read-text() =>
csv:parse(map{'separator': 'tab', 'header': 'yes'})
With some tries (at https://martin-honnen.github.io/cheerpj-basex-test/, shameless plug) I have found that 'header' : true() e.g.
csv:parse(map{'separator': '	', 'header': true()})
works in 11.7.
No idea whether that is an intended change but perhaps you can adapt your code.

