Bug report #17168

Boolean columns trigger Python errors in Refactor Fields processing algorithm

Added by Andreas Neumann about 3 years ago. Updated almost 3 years ago.

Assignee:Matthias Kuhn
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:25067


When using the "Refactor Fields" processing algorithm and the attribute data contains columns of type boolean, one gets Python errors:

File /usr/local/share/qgis/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py" line, in data
return self.fieldTypes[value]
KeyError: 1


(QVariant.Bool, "Boolean"),

has to be added to the fieldType OrderedDict.

Associated revisions

Revision ee8ef42c
Added by Alexander Bruy almost 3 years ago

[processing] boolean fieds support in the Refactor Fields algorithm (fix #17168)


#1 Updated by Giovanni Manghi almost 3 years ago

  • Status changed from Open to Feedback

Does it work as expected on 2.18?

#2 Updated by Andreas Neumann almost 3 years ago

The boolean data type (on the QGIS level) is new in QGIS master. It didn't exist in 2.18x

So the issue is only on master.

#3 Updated by Alexander Bruy almost 3 years ago

  • % Done changed from 0 to 100
  • Status changed from Feedback to Closed

Also available in: Atom PDF