arquero icon indicating copy to clipboard operation
arquero copied to clipboard

Error message reporting invalid column truncates column name

Open jwoLondon opened this issue 2 years ago • 1 comments

If reference is made to a non-existent column, an error message is (as expected) reported. However it appears to truncate the name of the misnamed column, missing off the first three characters.

For example:

dt = aq
  .table({
    animal: ["cat", "dog", "fish"],
    numberOfLegs: [4, 4, 0]
  })
  .groupby("number_of_legs")
  .count()

generates the message

dt = Error: Invalid column reference: "ber_of_legs"

An invalid column name that is three characters or fewer is reported as an empty string.

jwoLondon avatar May 13 '22 10:05 jwoLondon

FWIW, I am running arquero 5.2.0 on node and the error message still appears as above.

kenklin avatar Jun 21 '23 21:06 kenklin