1. A method of generating a dataflow graph representing a database query, the method including: receiving a query plan from a plan generator, the query plan representing operations for executing a database query on at least one input representing a source of data; producing a dataflow graph from the query plan, wherein the dataflow graph includes at least one node that represents at least one operation represented by the query plan, and includes at least one link that represents at least one dataflow associated with the query plan; and altering one or more components of the dataflow graph based on at least one characteristic of the at least one input representing the source of data.