Skip to content

Commit

Permalink
Merge pull request #3766 from xdelox/3748
Browse files Browse the repository at this point in the history
  • Loading branch information
hansva committed Apr 10, 2024
2 parents bb28b51 + 5704043 commit 2b1f601
Show file tree
Hide file tree
Showing 23 changed files with 1,882 additions and 28 deletions.
38 changes: 38 additions & 0 deletions docker/integration-tests/integration-tests-azure.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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.

version: "2.4"
services:
integration_test_azure:
extends:
file: integration-tests-base.yaml
service: integration_test
depends_on:
azurite-blob:
condition: service_healthy
links:
- azurite-blob

azurite-blob:
ports:
- "10000"
image: mcr.microsoft.com/azure-storage/azurite
command: azurite-blob --blobHost 0.0.0.0
healthcheck:
test: nc 127.0.0.1 10000 -z
interval: 1s
retries: 30
160 changes: 160 additions & 0 deletions integration-tests/azure/0001-read_parquet_from_azure_azfs_scheme.hpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
<?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>0001-read_parquet_from_azure_azfs_scheme</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/02/28 17:03:34.971</created_date>
<modified_user>-</modified_user>
<modified_date>2024/02/28 17:03:34.971</modified_date>
</info>
<notepads>
</notepads>
<order>
<hop>
<from>Parquet File Input</from>
<to>Dummy (do nothing)</to>
<enabled>Y</enabled>
</hop>
<hop>
<from>Generate rows Azurite (azfs scheme)</from>
<to>Parquet File Input</to>
<enabled>Y</enabled>
</hop>
</order>
<transform>
<name>Dummy (do nothing)</name>
<type>Dummy</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<attributes/>
<GUI>
<xloc>928</xloc>
<yloc>160</yloc>
</GUI>
</transform>
<transform>
<name>Generate rows Azurite (azfs scheme)</name>
<type>RowGenerator</type>
<description/>
<distribute>Y</distribute>
<custom_distribution/>
<copies>1</copies>
<partitioning>
<method>none</method>
<schema_name/>
</partitioning>
<fields>
<field>
<currency/>
<decimal/>
<format/>
<group/>
<length>-1</length>
<name>filename</name>
<nullif>azfs://devstoreaccount1/mycontainer/azfs-scheme.parquet</nullif>
<precision>-1</precision>
<set_empty_string>N</set_empty_string>
<type>String</type>
</field>
</fields>
<interval_in_ms>5000</interval_in_ms>
<last_time_field>FiveSecondsAgo</last_time_field>
<limit>1</limit>
<never_ending>N</never_ending>
<row_time_field>now</row_time_field>
<attributes/>
<GUI>
<xloc>432</xloc>
<yloc>160</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_format/>
<target_length/>
<target_precision/>
<target_type>Integer</target_type>
</field>
<field>
<source_field>name</source_field>
<target_field>name</target_field>
<target_format/>
<target_length/>
<target_precision/>
<target_type>String</target_type>
</field>
<field>
<source_field>company</source_field>
<target_field>company</target_field>
<target_format/>
<target_length/>
<target_precision/>
<target_type>String</target_type>
</field>
<field>
<source_field>industry</source_field>
<target_field>industry</target_field>
<target_format/>
<target_length/>
<target_precision/>
<target_type>String</target_type>
</field>
</fields>
<filename_field>filename</filename_field>
<attributes/>
<GUI>
<xloc>688</xloc>
<yloc>160</yloc>
</GUI>
</transform>
<transform_error_handling>
</transform_error_handling>
<attributes/>
</pipeline>
Loading

0 comments on commit 2b1f601

Please sign in to comment.