Home > User Defined Functions > Python
| Property | Requirement | Type | Default | Description |
|---|---|---|---|---|
| Python script | ✓ | Code (python) | See template below | Input your code here |
| Worker count | ✓ | Integer | 1 | Specify how many parallel workers to launch |
| Columns | List | - | The columns of the source | |
| ↳ Attribute Name | ✓ | String | - | |
| ↳ Attribute Type | ✓ | string, integer, long, double, boolean, timestamp, binary, large_binary | - | |
| Parameters | List | - | Values inferred from active self.UiParameter(...) calls.See UI parameters. |
Python script
# Define UiParameter inside GenerateOperator.open(). # Example: self.count = self.UiParameter("count", AttributeType.INT).value # See the Python UDF operator documentation for supported types and behavior. # # from pytexera import * # class GenerateOperator(UDFSourceOperator): # # @overrides # # def produce(self) -> Iterator[Union[TupleLike, TableLike, None]]: # yield
| Port | Mode |
|---|---|
| 0 | Set Snapshot |