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: Issue with read_lance on S3 #3215

Open
talagluck opened this issue Sep 24, 2024 · 0 comments
Open

Bug: Issue with read_lance on S3 #3215

talagluck opened this issue Sep 24, 2024 · 0 comments
Labels
bug 🐛 Something isn't working

Comments

@talagluck
Copy link
Contributor

Description

Currently I'm hitting an issue when I try and use read_lance for a Lance table on S3. When I use read_csv on another object in the same bucket passing in credentials in the same way, it works fine.

Here is the error:

---------------------------------------------------------------------------
ExecutionException                        Traceback (most recent call last)
Cell In[16], line 1
----> 1 con.sql(
      2     f"""
      3         SELECT * FROM read_lance(
      4             's3://glaredb-sandbox/lance/table1',
      5             access_key_id => '{aws_access_key_id}',
      6             secret_access_key => '{aws_secret_access_key}',
      7             region =>'us-east-2')
      8     """
      9 ).to_pandas()

ExecutionException: External error: Invalid credentials for s3, got no creds

Command that triggers the error:

con.sql(
    f"""   
        SELECT * FROM read_lance(
            's3://glaredb-sandbox/lance/table1',
            access_key_id => '{aws_access_key_id}',
            secret_access_key => '{aws_secret_access_key}',
            region =>'us-east-2'
        ) LIMIT 10;
    """
).to_pandas()

read_csv command that works:

con.sql(
    f"""   
        SELECT * FROM read_csv(
            's3://glaredb-sandbox/sales_data.csv',
            access_key_id => '{aws_access_key_id}',
            secret_access_key => '{aws_secret_access_key}',
            region =>'us-east-2'
        ) LIMIT 10;
    """
).to_pandas()
@talagluck talagluck added the bug 🐛 Something isn't working label Sep 24, 2024
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

No branches or pull requests

1 participant