Skip to content

Commit

Permalink
Merge pull request #9791 from nbc/bugfix/9768
Browse files Browse the repository at this point in the history
Bugfix/9768
  • Loading branch information
Mytherin committed Nov 24, 2023
2 parents 858de5e + e8f51ce commit 72034bc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
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)

0 comments on commit 72034bc

Please sign in to comment.