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

Fix of issues #4725 and #4726 #4727

Merged
merged 3 commits into from
Dec 24, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
232 changes: 232 additions & 0 deletions integration-tests/transforms/0029-parquet-input-no-files.hpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--

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.

-->
<pipeline>
<info>
<name>0029-parquet-input-no-files</name>
<name_sync_with_filename>Y</name_sync_with_filename>
<description/>
<extended_description/>
<pipeline_version/>
<pipeline_type>Normal</pipeline_type>
<parameters>
</parameters>
<capture_transform_performance>N</capture_transform_performance>
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay>
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit>
<created_user>-</created_user>
<created_date>2024/12/18 10:21:38.301</created_date>
<modified_user>-</modified_user>
<modified_date>2024/12/18 10:21:38.301</modified_date>
</info>
<notepads>
</notepads>
<order>
<hop>
<from>No filenames</from>
<to>Parquet File Input</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Parquet File Input</from>
<to>Detect empty stream</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Detect empty stream</from>
<to>Count</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Count</from>
<to>Output</to>
<enabled>Y</enabled>
</hop>
</order>
<transform>
<name>Count</name>
<type>GroupBy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<add_linenr>N</add_linenr>
<all_rows>Y</all_rows>
<directory>${java.io.tmpdir}</directory>
<fields>
<field>
<aggregate>count</aggregate>
<subject>id</subject>
<type>COUNT_ALL</type>
</field>
</fields>
<give_back_row>N</give_back_row>
<group>
</group>
<ignore_aggregate>N</ignore_aggregate>
<prefix>grp</prefix>
<attributes/>
<GUI>
<xloc>544</xloc>
<yloc>80</yloc>
</GUI>
</transform>
<transform>
<name>Detect empty stream</name>
<type>DetectEmptyStream</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<attributes/>
<GUI>
<xloc>416</xloc>
<yloc>80</yloc>
</GUI>
</transform>
<transform>
<name>No filenames</name>
<type>DataGrid</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<data>
<line>
<item/>
</line>
</data>
<fields>
<field>
<length>-1</length>
<precision>-1</precision>
<set_empty_string>N</set_empty_string>
<name>filename</name>
<type>String</type>
</field>
</fields>
<attributes/>
<GUI>
<xloc>112</xloc>
<yloc>80</yloc>
</GUI>
</transform>
<transform>
<name>Parquet File Input</name>
<type>ParquetFileInput</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<source_field>id</source_field>
<target_field>id</target_field>
<target_type>Integer</target_type>
</field>
<field>
<source_field>lastname</source_field>
<target_field>lastname</target_field>
<target_type>String</target_type>
</field>
<field>
<source_field>firstname</source_field>
<target_field>firstname</target_field>
<target_type>String</target_type>
</field>
<field>
<source_field>zip</source_field>
<target_field>zip</target_field>
<target_type>Integer</target_type>
</field>
<field>
<source_field>city</source_field>
<target_field>city</target_field>
<target_type>String</target_type>
</field>
<field>
<source_field>birthdate</source_field>
<target_field>birthdate</target_field>
<target_type>Integer</target_type>
</field>
<field>
<source_field>street</source_field>
<target_field>street</target_field>
<target_type>String</target_type>
</field>
<field>
<source_field>housenr</source_field>
<target_field>housenr</target_field>
<target_type>Integer</target_type>
</field>
<field>
<source_field>stateCode</source_field>
<target_field>stateCode</target_field>
<target_type>String</target_type>
</field>
<field>
<source_field>stateDesc</source_field>
<target_field>stateDesc</target_field>
<target_type>String</target_type>
</field>
</fields>
<filename_field>filename</filename_field>
<attributes/>
<GUI>
<xloc>272</xloc>
<yloc>80</yloc>
</GUI>
</transform>
<transform>
<name>Output</name>
<type>Dummy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<attributes/>
<GUI>
<xloc>672</xloc>
<yloc>80</yloc>
</GUI>
</transform>
<transform_error_handling>
</transform_error_handling>
<attributes/>
</pipeline>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
filename,id,lastname,firstname,zip,city,birthdate,street,housenr,stateCode,stateDesc,count
"",,,,,,,,,,," 0000000000"
57 changes: 28 additions & 29 deletions integration-tests/transforms/main-0029-parquet.hwf
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ limitations under the License.
<description/>
<type>SPECIAL</type>
<attributes/>
<repeat>N</repeat>
<schedulerType>0</schedulerType>
<intervalSeconds>0</intervalSeconds>
<intervalMinutes>60</intervalMinutes>
<DayOfMonth>1</DayOfMonth>
<hour>12</hour>
<intervalMinutes>60</intervalMinutes>
<intervalSeconds>0</intervalSeconds>
<minutes>0</minutes>
<repeat>N</repeat>
<schedulerType>0</schedulerType>
<weekDay>1</weekDay>
<DayOfMonth>1</DayOfMonth>
<parallel>N</parallel>
<xloc>128</xloc>
<yloc>80</yloc>
Expand All @@ -53,24 +53,22 @@ limitations under the License.
<description/>
<type>PIPELINE</type>
<attributes/>
<filename>${PROJECT_HOME}/0029-parquet-output.hpl</filename>
<params_from_previous>N</params_from_previous>
<exec_per_row>N</exec_per_row>
<clear_rows>N</clear_rows>
<clear_files>N</clear_files>
<set_logfile>N</set_logfile>
<logfile/>
<logext/>
<add_date>N</add_date>
<add_time>N</add_time>
<loglevel>Basic</loglevel>
<set_append_logfile>N</set_append_logfile>
<wait_until_finished>Y</wait_until_finished>
<clear_files>N</clear_files>
<clear_rows>N</clear_rows>
<create_parent_folder>N</create_parent_folder>
<run_configuration>local</run_configuration>
<exec_per_row>N</exec_per_row>
<filename>${PROJECT_HOME}/0029-parquet-output.hpl</filename>
<loglevel>Basic</loglevel>
<parameters>
<pass_all_parameters>Y</pass_all_parameters>
</parameters>
<params_from_previous>N</params_from_previous>
<run_configuration>local</run_configuration>
<set_append_logfile>N</set_append_logfile>
<set_logfile>N</set_logfile>
<wait_until_finished>Y</wait_until_finished>
<parallel>N</parallel>
<xloc>272</xloc>
<yloc>80</yloc>
Expand All @@ -88,6 +86,9 @@ limitations under the License.
<test_name>
<name>0029-parquet-input-nulls UNIT</name>
</test_name>
<test_name>
<name>0029-parquet-input-no-files UNIT</name>
</test_name>
</test_names>
<parallel>N</parallel>
<xloc>640</xloc>
Expand All @@ -99,24 +100,22 @@ limitations under the License.
<description/>
<type>PIPELINE</type>
<attributes/>
<filename>${PROJECT_HOME}/0029-parquet-output-nulls.hpl</filename>
<params_from_previous>N</params_from_previous>
<exec_per_row>N</exec_per_row>
<clear_rows>N</clear_rows>
<clear_files>N</clear_files>
<set_logfile>N</set_logfile>
<logfile/>
<logext/>
<add_date>N</add_date>
<add_time>N</add_time>
<loglevel>Basic</loglevel>
<set_append_logfile>N</set_append_logfile>
<wait_until_finished>Y</wait_until_finished>
<clear_files>N</clear_files>
<clear_rows>N</clear_rows>
<create_parent_folder>N</create_parent_folder>
<run_configuration>local</run_configuration>
<exec_per_row>N</exec_per_row>
<filename>${PROJECT_HOME}/0029-parquet-output-nulls.hpl</filename>
<loglevel>Basic</loglevel>
<parameters>
<pass_all_parameters>Y</pass_all_parameters>
</parameters>
<params_from_previous>N</params_from_previous>
<run_configuration>local</run_configuration>
<set_append_logfile>N</set_append_logfile>
<set_logfile>N</set_logfile>
<wait_until_finished>Y</wait_until_finished>
<parallel>N</parallel>
<xloc>448</xloc>
<yloc>80</yloc>
Expand Down
Loading
Loading