Open
Conversation
…functions
dict.get("key", default) returns None when the key exists with value None,
not the default. Using `or ""` handles the None case correctly.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…support Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
wudidapaopao
approved these changes
Apr 20, 2026
Contributor
|
Thanks for your contribution and the fix! |
Author
Member
Author
|
I tried again now and it came up with the form! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Two fixes to enable reading Parquet files from S3.
1.
read_parquetdoesn't work with S3 URLss3://paths were being routed tofrom_file(), which treats them as local paths. Fixed by routings3://paths inread_parquet()toDataStore.from_s3()instead.2.
DataStore.from_s3()crashes without an explicit formatRoot cause:
from_s3()stores{"format": None}in table function params when no format is specified.dict.get("format", "")returnsNone(not"") when the key exists with valueNone— the default only applies when the key is absent entirely.None.lower()then crashes inpreserves_row_order().Fixed by using
(self.params.get("format") or "").lower()in bothFileTableFunctionandS3TableFunction.Changes
datastore/pandas_api.py: Routes3://paths inread_parquet()toDataStore.from_s3()datastore/table_functions.py: FixNone.lower()crash inFileTableFunction.preserves_row_order()andS3TableFunction.preserves_row_order()Test plan
read_parquet("s3://...")routes to S3 table function instead of crashingDataStore.from_s3("s3://...", nosign=True)no longer raises'NoneType' object has no attribute 'lower'DataStore.from_file("data.parquet")with no explicit format still works🤖 Generated with Claude Code