Node-based fundamentals — quiz
6 questions covering this module. The workbench, node states, and reading and writing files.
What does a black triangle port carry?
- A database connection
- A data table
- A model
- A flow variable
Answer: A data table — The standard data table port.
The quickest way to inspect a node's output during development:
- Export to CSV
- The Node Monitor view
- Re-run the workflow
- The console
Answer: The Node Monitor view — It shows the selected node's output without opening a window.
A previously working node has turned red. Most likely cause?
- KNIME crashed
- An upstream column was renamed or removed
- Out of memory
- The file moved
Answer: An upstream column was renamed or removed — Hover for the specific message.
Changing a node's configuration:
- Only affects that node
- Resets it and everything downstream
- Re-runs the workflow
- Has no effect until saved
Answer: Resets it and everything downstream — Downstream inputs may now differ, so they must re-run.
Postcodes lose their leading zeros. Fix:
- Change the delimiter
- Set the column type to String in the reader
- Use Excel Reader
- Increase memory
Answer: Set the column type to String in the reader — Type guessing reads it as a number.
To read a folder of monthly CSVs in one node:
- One reader per file
- Point the reader at the folder with a *.csv filter
- Use Concatenate only
- Use the Joiner
Answer: Point the reader at the folder with a *.csv filter — Add a path column to record the source file.