////
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at
  http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
////
:documentationPath: /pipeline/transforms/
:language: en_US
:description: The Parquet File Input transform reads (primitive) values from an Apache Parquet file.

= image:transforms/icons/parquet_input.svg[Parquet File Input transform Icon, role="image-doc-icon"] Parquet File Input

[%noheader,cols="3a,1a", role="table-no-borders" ]
|===
|
== Description

The Parquet File Input transform reads (primitive) values from an Apache Parquet file.

For more information on this see: http://parquet.apache.org/[Apache Parquet].

|
== Supported Engines
[%noheader,cols="2,1a",frame=none, role="table-supported-engines"]
!===
!Hop Engine! image:check_mark.svg[Supported, 24]
!Spark! image:check_mark.svg[Supported, 24]
!Flink! image:check_mark.svg[Supported, 24]
!Dataflow! image:check_mark.svg[Supported, 24]
!===
|===

== Options

Notes:

* To support reading from any location through Apache VFS each file is loaded into memory (one at a time).
Make sure to allocate enough memory to allow this.
* Long values can be de-serialized to Dates if they are EPOC: milliseconds since `1970-01-01 00:00:00.000`
* Parquet Binary fields are considered to be Hop Strings but you can read them as Hop Binary.
* All input values are passed to the output
* INT96 is converted to the Hop Binary data type.

[options="header"]
|===
|Option|Description

|Transform name
|Name of the transform this name has to be unique in a single pipeline.

|Filename field
|Specify the input field.
Use a transform like Get File Names to obtain file names.
Any supported file location is fine.

|Fields
|In this table you can specify all the fields you want to obtain from the parquet files as well as their desired Hop output type.

|Get fields button
|With this button you can select a parquet file from which we'll read the schema to populate the Fields grid.

|===