Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute table in layout shows NULL numerical values as zeros #46331

Closed
1 of 2 tasks
aroche opened this issue Dec 2, 2021 · 6 comments · Fixed by #46332
Closed
1 of 2 tasks

Attribute table in layout shows NULL numerical values as zeros #46331

aroche opened this issue Dec 2, 2021 · 6 comments · Fixed by #46332
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@aroche
Copy link
Contributor

aroche commented Dec 2, 2021

What is the bug or the crash?

See this question.

Steps to reproduce the issue

  1. Add or create a vector layer with a numerical field containing some empty (NULL) values
  2. Create a print layout
  3. Add an attribute table object referring to the layer containing NULL values
  4. The NULL values are displayed as zeros instead of empty cells

Versions

Version de QGIS 3.22.0-Białowieża Révision du code d902269
Version de Qt 5.15.2
Version de Python 3.9.5
Version de GDAL/OGR 3.4.0
Version de Proj 8.2.0
Version de la base de données du registre EPSG v10.038 (2021-10-21)
Version de GEOS 3.10.0-CAPI-1.16.0
Version de SQLite 3.35.2
Version de PDAL 2.3.0
Version du client PostgreSQL 13.0
Version de SpatiaLite 5.0.1
Version de QWT 6.1.3
Version de QScintilla2 2.11.5
Version de l'OS Windows 10 Version 1809
       
Extensions Python actives
changeDataSource 3.1
french_locator_filter 1.0.0
geometry_paster 0.1.1
Go2NextFeature3 2.00
profiletool 4.1.8
SpreadsheetLayers 2.0.1
StreetView 3.2
valuetool 3.0.14
ViewshedAnalysis 1.7
db_manager 0.1.20
grassprovider 2.12.99
processing 2.12.99
sagaprovider 2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@aroche aroche added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Dec 2, 2021
@elpaso
Copy link
Contributor

elpaso commented Dec 2, 2021

Can you please attach a sample project with data?

@elpaso elpaso added the Feedback Waiting on the submitter for answers label Dec 2, 2021
@aroche
Copy link
Contributor Author

aroche commented Dec 2, 2021

Here it is. Open the print layout to see the problem.
test_null_layout.zip

@elpaso elpaso removed the Feedback Waiting on the submitter for answers label Dec 2, 2021
@pigreco
Copy link
Sponsor Contributor

pigreco commented Dec 2, 2021

I confirm.
i tested with both gpkg and txt

OSGeo4W v2 win 10 - QGIS 3.22.1 QGIS 3.16.14 and master

@elpaso
Copy link
Contributor

elpaso commented Dec 2, 2021

What's the expected output here? An empty cell?
I don't think NULL is desired in a print layout.

@pigreco
Copy link
Sponsor Contributor

pigreco commented Dec 2, 2021

What's the expected output here? An empty cell?

In my opinion, the most consistent output is empty cell

elpaso added a commit to elpaso/QGIS that referenced this issue Dec 2, 2021
@elpaso
Copy link
Contributor

elpaso commented Dec 2, 2021

What's the expected output here? An empty cell?

In my opinion, the most consistent output is empty cell

I agree, that's what I have implemented in #46332

elpaso added a commit to elpaso/QGIS that referenced this issue Dec 3, 2021
nyalldawson pushed a commit that referenced this issue Dec 3, 2021
nyalldawson pushed a commit that referenced this issue Dec 3, 2021
qgis-bot pushed a commit that referenced this issue Dec 3, 2021
qgis-bot pushed a commit that referenced this issue Dec 3, 2021
qgis-bot pushed a commit that referenced this issue Dec 3, 2021
qgis-bot pushed a commit that referenced this issue Dec 3, 2021
nyalldawson pushed a commit that referenced this issue Dec 4, 2021
nyalldawson pushed a commit that referenced this issue Dec 4, 2021
manisandro pushed a commit to kadas-albireo/QGIS that referenced this issue Dec 17, 2021
manisandro pushed a commit to kadas-albireo/QGIS that referenced this issue Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants