Skip to content

Table expressions do not support underscores as numeric separators in numeric literals #320

@ghing

Description

@ghing

JavaScript now supports underscores as separators in numeric literals, however, Arquero table expressions do not support this.

Replication code:

let dt = aq.table({
  'col1': [1_000, 2_001, 3_123],
});
dt = dt.derive({
  col1_gt_2k: d => d.col1 > 2_000
});

Expected result:

dt has the same value as if the code execute was:

dt = dt.derive({
  col1_gt_2k: d => d.col1 > 2000
})

Observed result:

The following error is thrown:

Error: Expression parse error: d => d.col1 > 2_000

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