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

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

Open
ghing opened this issue Feb 12, 2023 · 0 comments

Comments

@ghing
Copy link

ghing commented Feb 12, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant