What is the format of the query.expected files?
#357
-
|
I'm writing a parser for the
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
To quote @aibaars from Slack: It's just plain text. Usually a table-like format like The expected output may also contain compiler output such as errors and warnings in addition to the table output. The above is the case for most tests. However, some query (Paraphrasing now), for most purposes it is better to run a query with a more firmly-defined format like CSV, or for graph queries DOT or DGML, than to try to parse the |
Beta Was this translation helpful? Give feedback.
To quote @aibaars from Slack:
It's just plain text. Usually a table-like format like
| value1 | value2 | ... |If you use named query predicates (query predicate fooBar) then each "table" is prefixed with a "title" likeThe expected output may also contain compiler output such as errors and warnings in addition to the table output.
The above is the case for most tests. However, some query
@kinds have different output. For example@kindgraph or@kindtree produce some textual graph representation instead of a table.(Paraphrasing now), for most purposes it is better to run a query with a more firmly-defined format like CSV, or for graph queries DOT or DGM…