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

[Bug]: Marshaling Array type in Lua runtime #6654

Closed
Isan-Rivkin opened this issue Sep 26, 2023 · 0 comments · Fixed by #6655
Closed

[Bug]: Marshaling Array type in Lua runtime #6654

Isan-Rivkin opened this issue Sep 26, 2023 · 0 comments · Fixed by #6655
Assignees
Labels
bug Something isn't working

Comments

@Isan-Rivkin
Copy link
Contributor

Isan-Rivkin commented Sep 26, 2023

What happened?

What actually happened, including error codes if applies.

Steps to Reproduce:

  1. create an array in a lua script test.lua
local arr = {
    {
        A = "a" 
    }
}
  1. call lakeFS action or directly via ./lakefs lua run test.lua
  2. Runtime error: runtime error: invalid key to 'next'

The runtime error comes from go-lua source code because we don't recognize it's an array in isArray.

Expected behavior

Marshaling arrays should work.

lakeFS version

latest

How lakeFS is installed

locally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant