ColumnSubsetView
Experimental
The Workbench View classes are currently in experimental mode so have fun but expect issues and API changes going forward.
ColumnSubsetView creates a view exposing a specific subset of columns from a DataSource or FeatureSet. It subclasses CreateView.
ColumnSubsetView Class: Create A View with a subset of columns
ColumnSubsetView
Bases: CreateView
ColumnSubsetView Class: Create a View with a subset of columns
Common Usage
Source code in src/workbench/core/views/column_subset_view.py
__init__(view_name, artifact, source_table=None)
Initialize the ColumnSubsetView
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
view_name
|
str
|
The name of the view |
required |
artifact
|
Union[DataSource, FeatureSet]
|
The DataSource or FeatureSet object |
required |
source_table
|
str
|
The table/view to create the view from. Defaults to None |
None
|
Source code in src/workbench/core/views/column_subset_view.py
create(view_name, artifact, source_table=None, column_list=None, column_limit=30)
classmethod
Factory method to create and return a ColumnSubsetView instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
view_name
|
str
|
The name of the view |
required |
artifact
|
Union[DataSource, FeatureSet]
|
The DataSource or FeatureSet object |
required |
source_table
|
str
|
The table/view to create the view from. Defaults to None |
None
|
column_list
|
Union[list[str], None]
|
A list of columns to include. Defaults to None. |
None
|
column_limit
|
int
|
The max number of columns to include. Defaults to 30. |
30
|
Returns:
| Type | Description |
|---|---|
Union[View, None]
|
Union[View, None]: The created View object (or None if failed to create the view) |
Source code in src/workbench/core/views/column_subset_view.py
Questions?

The SuperCowPowers team is happy to answer any questions you may have about AWS and Workbench. Please contact us at workbench@supercowpowers.com or on chat us up on Discord