When the function _create_table_ddl in custom_functions/utils/create_table.py is called on a table that contains geometry in PostGIS, it tries to build a DDL but fails to provide the correct type, causing a syntax error.
Proper PostGIS support should be implemented in the function.