Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

unable to cast <nil> of type <nil> to float64  #759

Closed
@ajnavarro

Description

@ajnavarro

This error is happening on this query:

SELECT
    added,
    deleted,
    commit_author_when,
    commit_hash,
    repository_id,
    CASE WHEN deleted < (added+deleted)*0.1 THEN 'Added' WHEN added < (added+deleted)*0.1 THEN 'Deleted' ELSE 'Changed' END AS commit_type
FROM (
        SELECT 
            JSON_EXTRACT(stats, "$.Total.Additions") as added,  
            JSON_EXTRACT(stats, "$.Total.Deletions") as deleted, 
            commit_author_when, 
            commit_hash,
            repository_id
        FROM (
            SELECT 
                repository_id,
                commit_author_when,
                commit_hash,
                commit_stats(repository_id, commit_hash) as stats 
            FROM refs 
            natural join ref_commits 
            natural join commits 
            --where refs.ref_name="HEAD"
        ) q
) q2;

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions