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

Script doesn't work when column is named name #4

Open
zikani03 opened this issue Aug 12, 2021 · 0 comments
Open

Script doesn't work when column is named name #4

zikani03 opened this issue Aug 12, 2021 · 0 comments

Comments

@zikani03
Copy link
Contributor

The script below results in an exception because of the name token in the script;

import java.time.LocalDate;

name        = column(index= 0, name="name")
quantity    = column(index= 1, name="quantity")
created_at  = column(index= 2, name="created_at")
category    = column(index= 3, name="category")
deleted     = column(index= 4, name="deleted")
description = column(index= 5, name="description")
modified_at = column(index= 6, name="modified_at")

columns = [
    (name):         { ctx -> ctx.name().firstName() },
    (quantity):     { ctx -> ctx.number().numberBetween(1, 70) },
    (created_at):   { ctx -> LocalDate.now() },
    (category):     { ctx -> ctx.number().numberBetween(0, 5) },
    (deleted):      { ctx -> false },
    (description):  { ctx -> ctx.name().firstName() },
    (modified_at):  { ctx -> LocalDate.now() }
]

generateFrom columns

As reported by @SharkFourSix

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