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

area field in department, region and city has a string type instead of float type #176

Closed
loco-philippe opened this issue Sep 18, 2024 · 1 comment · Fixed by #188
Closed
Assignees
Labels
bug Something isn't working

Comments

@loco-philippe
Copy link
Collaborator

Query without cast has no result.

SELECT 
        SUM(city.area::float) AS total
FROM
    city

Note : The areafield of epci is correct (float)

@jmaupetit jmaupetit self-assigned this Oct 8, 2024
@jmaupetit jmaupetit added improvement bug Something isn't working and removed improvement labels Oct 8, 2024
@jmaupetit
Copy link
Member

This has been validated using:

SELECT
  table_name,
  column_name,
  data_type
FROM
  information_schema.columns
WHERE
  table_name IN ('city', 'department', 'epci', 'region')
  AND column_name = 'area'

Which gives:

table_name column_name data_type
epci area double precision
city area text
department area text
region area text

@jmaupetit jmaupetit linked a pull request Oct 9, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants