Skip to content

V2WriteCommand Logical Commands

V2WriteCommand is an extension of the UnaryCommand abstraction for unary logical commands that write data out to tables.

Contract

isByName

isByName: Boolean

Always disabled (false):

Used when:

  • ResolveOutputRelation logical resolution rule is executed (for TableOutputResolver to resolveOutputColumns)

Query

query: LogicalPlan

LogicalPlan of the data to be written out

Table

table: NamedRelation

NamedRelation of the table to write data to

withNewQuery

withNewQuery(
  newQuery: LogicalPlan): V2WriteCommand

Used when:

  • ResolveOutputRelation logical analysis rule is executed

withNewTable

withNewTable(
  newTable: NamedRelation): V2WriteCommand

Used when:

  • ResolveRelations logical analysis rule is executed
  • ResolveOutputRelation logical analysis rule is executed

Implementations