Skip to content

What is the format of the query.expected files? #357

Answered by smowton
gagliardetto asked this question in Q&A
Discussion options

You must be logged in to vote

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" like

fooBar
| value1 | value2 | ... |

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 @kinds have different output. For example @kind graph or @kind tree 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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gagliardetto
Comment options

Answer selected by gagliardetto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants