-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
feat: Add parquet upload #14449
feat: Add parquet upload #14449
Changes from 8 commits
4cc378a
c44fcee
968c048
c23b1ec
97bea75
2f8482b
77b381f
f8b0dfc
b40a3e2
f2911b5
dd889b0
cfdd3be
5e063bd
4c74594
9096faf
98c75ba
d92a290
3501fac
f209999
10d6229
35eaea6
10e825d
658656d
0f1816b
7b1b53b
b885b38
6bcc0d9
60ae1fe
5b5eb74
df2930f
9b4d35b
de3509e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -95,7 +95,9 @@ def at_least_one_schema_is_allowed(database: Database) -> bool: | |
validators=[ | ||
FileRequired(), | ||
FileAllowed( | ||
config["ALLOWED_EXTENSIONS"].intersection(config["CSV_EXTENSIONS"]), | ||
config["ALLOWED_EXTENSIONS"].intersection( | ||
config["CSV_EXTENSIONS"].union(config["OTHER_EXTENSIONS"]) | ||
), | ||
_( | ||
"Only the following file extensions are allowed: " | ||
"%(allowed_extensions)s", | ||
|
@@ -163,6 +165,15 @@ def at_least_one_schema_is_allowed(database: Database) -> bool: | |
_("Mangle Duplicate Columns"), | ||
description=_('Specify duplicate columns as "X.0, X.1".'), | ||
) | ||
usecols = JsonListField( | ||
_("Use Columns"), | ||
default=None, | ||
description=_( | ||
"Json list of the column names that should be read. " | ||
"If not None, only these columns will be read from the file." | ||
), | ||
validators=[Optional()], | ||
) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you provide a screenshot of the updated form UI? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added a screenshot to the summary above
Comment on lines
+172
to
+180
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @villebro do you still want to keep the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, let's keep this, I think it's a great addition 👍 |
||
skipinitialspace = BooleanField( | ||
_("Skip Initial Space"), description=_("Skip spaces after delimiter.") | ||
) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to add the
union
to the error message below.