Skip to content

some datapoint values in the response are wrong #16

@buchslava

Description

@buchslava

dataset is SG
query is

{
        select: {
          key: ['geo', 'time'],
          value: [
            'life_expectancy_years', 'population_total'
          ]
        },
        from: 'datapoints',
        where: {
          $and: [
            {geo: '$geo'},
            {time: '$time'},
            {
              $or: [
                {population_total: {$gt: 10000}},
                {life_expectancy_years: {$gt: 30, $lt: 70}}
              ]
            }
          ]
        },
        join: {
          $geo: {
            key: 'geo',
            where: {
              $and: [
                {'is--country': true},
                {latitude: {$lte: 0}}
              ]
            }
          },
          $time: {
            key: 'time',
            where: {$and: [{time: {$gt: '1990', $lte: '2015'}}]}
          }
        },
        order_by: ['time', 'geo']
      }

or

http://waffle-server-dev.gapminderdev.org/api/ddf/ql?_select_key@=geo&=time;&value@=life/_expectancy/_years&=population/_total;;&from=datapoints&where_$and@_geo=$geo;&_time=$time;&_$or@_population/_total_$gt:10000;;&_life/_expectancy/_years_$gt:30&$lt:70;;;;;;&join_$geo_key=geo&where_$and@_is--country:true;&_latitude_$lte:0;;;;;&$time_key=time&where_$and@_time_$gt=1990&$lte=2015;;;;;;&order/_by@=time&=geo;&dataset=buchslava%252Freaders-test-ds-systema-globalis

result is (see ws.json)
screenshot from 2018-01-30 11-28-11

life_expectancy_years values should not be null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions