---
title: table (DataStreamWriter)
description: "DataStreamWriter.table method in PySpark: Starts the execution of the streaming query, continually outputting results to the given table as new data arrives."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/datastreamwriter/table
---

# table (DataStreamWriter)

Alias for `toTable()`. Starts the execution of the streaming query, continually outputting results to the given table as new data arrives.

## Syntax

```
table(tableName)
```

## Parameters

| Parameter   | Type | Description        |
| ----------- | ---- | ------------------ |
| `tableName` | str  | Name of the table. |

## Returns

`StreamingQuery`
