You probably use shapefiles to store your layer. To solve your issue, save the layer to a Geopackage.
Shapefiles do not support Datetime field types. See the QGIS documentation about Shapefiles:
Only Decimal number, Whole number, Text data and Date attributes are
See also this explanation.
Assign pdf_table.columns() to a variable
columns = pdf_table.columns()
for column, header in zip(columns, pdf_headers):
You need to match the lenghts of your fields. To achieve that, go to Processing -> Refactor Fields
Select you layer with the too short field as input, map it to your "longer" layer and run it. The resulting layer should be mergeable with your original "long" layer.
There are other solution available.
Solution 1 : QgsAggregateCalculator (see documentation) with ArrayAggregate
Available aggregates to calculate.
Not all aggregates are available for all field types.
This approach is available since QGIS 2.16.
layer = QgsProject.instance().mapLayersByName('your_layer_name') # define your layer name
temp_layer = layer....
Somehow, using tools like Wedge_buffer or Buffer, setting parameters (like distance, azimuth or width) based on attribute fields does not seem to work.
For this reason, a very simple way is to use Geometry by expression to create geometries using QGIS expressions. The model is extremely simple as you can see on the screenshot. Use this expression to create ...