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

Bugfix/9768 #9791

Merged
merged 2 commits into from Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/common/hive_partitioning.cpp
Expand Up @@ -65,7 +65,7 @@ static void ConvertKnownColRefToConstants(unique_ptr<Expression> &expr,
// - http(s)://domain(:port)/lala/kasdl/var1=value1/?not-a-var=not-a-value
// - folder/folder/folder/../var1=value1/etc/.//var2=value2
const string &HivePartitioning::RegexString() {
static string REGEX = "[\\/\\\\]([^\\/\\?\\\\]+)=([^\\/\\n\\?\\\\]+)";
static string REGEX = "[\\/\\\\]([^\\/\\?\\\\]+)=([^\\/\\n\\?\\\\]*)";
return REGEX;
}

Expand Down
14 changes: 14 additions & 0 deletions test/sql/copy/parquet/parquet_hive_empty.test
@@ -0,0 +1,14 @@
# name: test/sql/copy/parquet/parquet_hive_empty.test
# description: Test empty partitioning values
# group: [parquet]

require parquet

query II
select *
from parquet_scan('data/parquet-testing/hive-partitioning/empty_string/*/*.parquet', hive_partitioning=1)
ORDER BY ALL
----
a a
b (empty)