MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / Insert

Class Insert

misc/python/materialize/zippy/table_actions.py:150–159  ·  view source on GitHub ↗

Inserts rows into a table.

Source from the content-addressed store, hash-verified

148
149
150class Insert(DML):
151 """Inserts rows into a table."""
152
153 def run(self, c: Composition, state: State) -> None:
154 prev_max = self.table.watermarks.max
155 self.table.watermarks.max = prev_max + self.delta
156 c.testdrive(
157 f"> INSERT INTO {self.table.name} SELECT * FROM generate_series({prev_max + 1}, {self.table.watermarks.max});",
158 mz_service=state.mz_service,
159 )
160
161
162class ShiftForward(DML):

Callers 7

plan_insertFunction · 0.50
try_parseMethod · 0.50
referenced_batchesMethod · 0.50
diff_field_sorted_iterFunction · 0.50
field_diff_into_rustFunction · 0.50
parse_insertMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected