This commit is contained in:
Uri Shapira 2022-04-25 13:09:13 +03:00
Родитель 5256bc681a
Коммит ccc66a9589
3 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

@ -2,14 +2,14 @@
<package >
<metadata>
<id>pq2json_linux</id>
<version>0.1.16</version>
<version>0.1.17</version>
<authors>Evgeney Ryzhyk</authors>
<owners>Evgeney Ryzhyk</owners>
<license type="expression">MIT</license>
<projectUrl>https://github.com/Azure/azure-kusto-parquet-conv</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Parquet to JSON (line delimited) converter tool.</description>
<releaseNotes>Reverted cslschema changes for handling of Int32, JSON and Decimal types.</releaseNotes>
<releaseNotes>Updated cslschema handling of Int32, JSON and Decimal types.</releaseNotes>
<copyright>Copyright 2020</copyright>
<tags></tags>
<dependencies></dependencies>

Просмотреть файл

@ -2,14 +2,14 @@
<package >
<metadata>
<id>pq2json</id>
<version>0.1.16</version>
<version>0.1.17</version>
<authors>Evgeney Ryzhyk</authors>
<owners>Evgeney Ryzhyk</owners>
<license type="expression">MIT</license>
<projectUrl>https://github.com/Azure/azure-kusto-parquet-conv</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Parquet to JSON (line delimited) converter tool.</description>
<releaseNotes>Reverted cslschema changes for handling of Int32, JSON and Decimal types.</releaseNotes>
<releaseNotes>Updated cslschema handling of Int32, JSON and Decimal types.</releaseNotes>
<copyright>Copyright 2020</copyright>
<tags></tags>
<dependencies></dependencies>

Просмотреть файл

@ -82,18 +82,18 @@ fn field_csl_schema(field_type: &Type) -> (&str, &str) {
PhysicalType::BOOLEAN => "bool",
PhysicalType::BYTE_ARRAY => match basic_info.logical_type() {
LogicalType::UTF8 | LogicalType::ENUM | LogicalType::JSON => "string",
LogicalType::DECIMAL => "real",
LogicalType::DECIMAL => "decimal",
_ => "dynamic",
},
PhysicalType::FIXED_LEN_BYTE_ARRAY => match basic_info.logical_type() {
LogicalType::DECIMAL => "real",
LogicalType::DECIMAL => "decimal",
_ => "dynamic",
},
PhysicalType::DOUBLE | PhysicalType::FLOAT => "real",
PhysicalType::INT32 => match basic_info.logical_type() {
LogicalType::DATE => "datetime",
LogicalType::DECIMAL => "real",
_ => "long",
_ => "int",
},
PhysicalType::INT64 => match basic_info.logical_type() {
LogicalType::TIMESTAMP_MILLIS | LogicalType::TIMESTAMP_MICROS => "datetime",