summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Henrie <alexhenrie24@gmail.com>2024-04-18 22:32:19 -0600
committerDavid Faure <faure@kde.org>2024-04-21 10:35:08 +0000
commit555f34640f2c03a2b9fa2ac86dcbd92077a47023 (patch)
tree52607c62240cc2b8230f9bd916f6c438035f466c
parentfb8bf14006c9186accc6e219b39bae3307d46421 (diff)
Add application/vnd.apache.parquet
https://www.iana.org/assignments/media-types/application/vnd.apache.parquet
-rw-r--r--data/freedesktop.org.xml.in10
-rw-r--r--tests/mime-detection/empty.parquetbin0 -> 165 bytes
-rw-r--r--tests/mime-detection/list2
3 files changed, 12 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 8adc9f0..ed24e60 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -1549,6 +1549,16 @@ command to generate the output files.
<generic-icon name="x-office-document"/>
<glob pattern="*.oxt" />
</mime-type>
+ <mime-type type="application/vnd.apache.parquet">
+ <comment>Apache Parquet file</comment>
+ <alias type="application/x-parquet"/>
+ <generic-icon name="x-office-spreadsheet"/>
+ <magic>
+ <match type="string" value="PAR1" offset="0"/>
+ <match type="string" value="PARE" offset="0"/>
+ </magic>
+ <glob pattern="*.parquet"/>
+ </mime-type>
<mime-type type="application/vnd.android.package-archive">
<comment>Android package</comment>
<sub-class-of type="application/java-archive"/>
diff --git a/tests/mime-detection/empty.parquet b/tests/mime-detection/empty.parquet
new file mode 100644
index 0000000..ff031dd
--- /dev/null
+++ b/tests/mime-detection/empty.parquet
Binary files differ
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 3b48713..dca7e66 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -1046,6 +1046,8 @@ test.hej2 image/hej2k
data.mdb application/x-lmdb x
# MS Access DB, copied from Qt5's qtbase/tests/auto/sql/kernel/qsqldatabase/testdata/qtest.mdb (LGPL)
msaccess.mdb application/vnd.ms-access
+# Apache Parquet file, created with pyarrow
+empty.parquet application/vnd.apache.parquet
1EO8.pdb chemical/x-pdb