Skip to main content

Overview

Review the execution contracts and interface-specific input formats you need when writing Python or SQL in D.Hub.

Choose a reference

PageWhat it covers
Python code referenceThe pipeline Python code node's run function, inputs, options, shared values, outputs, available packages, and examples
SQL referenceDifferences between the input tables used by pipeline SQL nodes, dataset exploration, and dashboard SQL mode, plus ClickHouse functions

Distinguish the interfaces

Where you write codeReferenceInput convention
Pipeline Python code nodePython code referenceA Polars DataFrame passed to run(input, *, options=None, contexts=None)
Pipeline SQL nodeSQL referenceThe input connection alias, or input by default
Dataset Data tabSQL referenceThe current dataset's physical table name
Dashboard widget SQL modeSQL referenceThe selected data source's database.table

Python and SQL do not share the same input and output contract. In particular, the input table name applies only to pipeline SQL nodes.