You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/06/11 10:33:48 UTC
[GitHub] [flink] JingsongLi opened a new pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
JingsongLi opened a new pull request #12602:
URL: https://github.com/apache/flink/pull/12602
## What is the purpose of the change
Add documentation for ORC format for filesystem connector.
## Verifying this change


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
}, {
"hash" : "2d4a08211af53289fc8324c0fd0b877960707466",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2d4a08211af53289fc8324c0fd0b877960707466",
"triggerType" : "PUSH"
}, {
"hash" : "9064e345ad710b98d63cf01843b6491325f1af38",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3380",
"triggerID" : "9064e345ad710b98d63cf01843b6491325f1af38",
"triggerType" : "PUSH"
}, {
"hash" : "366286c9bd4ae2ca448fa5e1baba2ff122def03c",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3406",
"triggerID" : "366286c9bd4ae2ca448fa5e1baba2ff122def03c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2d4a08211af53289fc8324c0fd0b877960707466 UNKNOWN
* 366286c9bd4ae2ca448fa5e1baba2ff122def03c Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3406)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c139ede6cd628aac3b30405c63a738c9682007da Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
}, {
"hash" : "2d4a08211af53289fc8324c0fd0b877960707466",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2d4a08211af53289fc8324c0fd0b877960707466",
"triggerType" : "PUSH"
}, {
"hash" : "9064e345ad710b98d63cf01843b6491325f1af38",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3380",
"triggerID" : "9064e345ad710b98d63cf01843b6491325f1af38",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c139ede6cd628aac3b30405c63a738c9682007da Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282)
* 2d4a08211af53289fc8324c0fd0b877960707466 UNKNOWN
* 9064e345ad710b98d63cf01843b6491325f1af38 Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3380)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
}, {
"hash" : "2d4a08211af53289fc8324c0fd0b877960707466",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2d4a08211af53289fc8324c0fd0b877960707466",
"triggerType" : "PUSH"
}, {
"hash" : "9064e345ad710b98d63cf01843b6491325f1af38",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3380",
"triggerID" : "9064e345ad710b98d63cf01843b6491325f1af38",
"triggerType" : "PUSH"
}, {
"hash" : "366286c9bd4ae2ca448fa5e1baba2ff122def03c",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "366286c9bd4ae2ca448fa5e1baba2ff122def03c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2d4a08211af53289fc8324c0fd0b877960707466 UNKNOWN
* 9064e345ad710b98d63cf01843b6491325f1af38 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3380)
* 366286c9bd4ae2ca448fa5e1baba2ff122def03c UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
}, {
"hash" : "2d4a08211af53289fc8324c0fd0b877960707466",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2d4a08211af53289fc8324c0fd0b877960707466",
"triggerType" : "PUSH"
}, {
"hash" : "9064e345ad710b98d63cf01843b6491325f1af38",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "9064e345ad710b98d63cf01843b6491325f1af38",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c139ede6cd628aac3b30405c63a738c9682007da Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282)
* 2d4a08211af53289fc8324c0fd0b877960707466 UNKNOWN
* 9064e345ad710b98d63cf01843b6491325f1af38 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on a change in pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on a change in pull request #12602:
URL: https://github.com/apache/flink/pull/12602#discussion_r439356463
##########
File path: docs/dev/table/connectors/formats/orc.md
##########
@@ -0,0 +1,183 @@
+---
+title: "Orc Format"
+nav-title: Orc
+nav-parent_id: sql-formats
+nav-pos: 6
+---
+<!--
+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.
+-->
+
+<span class="label label-info">Format: Serialization Schema</span>
+<span class="label label-info">Format: Deserialization Schema</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+The [Apache Orc](https://orc.apache.org/) format allows to read and write Orc data.
+
+Dependencies
+------------
+
+In order to setup the Orc format, the following table provides dependency information for both
+projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
+
+| Maven dependency | SQL Client JAR |
+| :----------------- | :----------------------|
+| `flink-orc` |{% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-orc{{site.scala_version_suffix}}/{{site.version}}/flink-orc{{site.scala_version_suffix}}-{{site.version}}-jar-with-dependencies.jar) {% else %} Only available for stable releases {% endif %}|
Review comment:
It is currently Flink dependency style.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c139ede6cd628aac3b30405c63a738c9682007da UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
}, {
"hash" : "2d4a08211af53289fc8324c0fd0b877960707466",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2d4a08211af53289fc8324c0fd0b877960707466",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c139ede6cd628aac3b30405c63a738c9682007da Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282)
* 2d4a08211af53289fc8324c0fd0b877960707466 UNKNOWN
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot commented on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot commented on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642561113
Thanks a lot for your contribution to the Apache Flink project. I'm the @flinkbot. I help the community
to review your pull request. We will use this comment to track the progress of the review.
## Automated Checks
Last check on commit c139ede6cd628aac3b30405c63a738c9682007da (Thu Jun 11 10:35:44 UTC 2020)
✅no warnings
<sub>Mention the bot in a comment to re-run the automated checks.</sub>
## Review Progress
* ❓ 1. The [description] looks good.
* ❓ 2. There is [consensus] that the contribution should go into to Flink.
* ❓ 3. Needs [attention] from.
* ❓ 4. The change fits into the overall [architecture].
* ❓ 5. Overall code [quality] is good.
Please see the [Pull Request Review Guide](https://flink.apache.org/contributing/reviewing-prs.html) for a full explanation of the review process.<details>
The Bot is tracking the review progress through labels. Labels are applied according to the order of the review items. For consensus, approval by a Flink committer of PMC member is required <summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot approve description` to approve one or more aspects (aspects: `description`, `consensus`, `architecture` and `quality`)
- `@flinkbot approve all` to approve all aspects
- `@flinkbot approve-until architecture` to approve everything until `architecture`
- `@flinkbot attention @username1 [@username2 ..]` to require somebody's attention
- `@flinkbot disapprove architecture` to remove an approval you gave earlier
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on a change in pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on a change in pull request #12602:
URL: https://github.com/apache/flink/pull/12602#discussion_r439358452
##########
File path: docs/dev/table/connectors/formats/orc.md
##########
@@ -0,0 +1,183 @@
+---
+title: "Orc Format"
+nav-title: Orc
+nav-parent_id: sql-formats
+nav-pos: 6
+---
+<!--
+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.
+-->
+
+<span class="label label-info">Format: Serialization Schema</span>
+<span class="label label-info">Format: Deserialization Schema</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+The [Apache Orc](https://orc.apache.org/) format allows to read and write Orc data.
+
+Dependencies
+------------
+
+In order to setup the Orc format, the following table provides dependency information for both
+projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
+
+| Maven dependency | SQL Client JAR |
+| :----------------- | :----------------------|
+| `flink-orc` |{% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-orc{{site.scala_version_suffix}}/{{site.version}}/flink-orc{{site.scala_version_suffix}}-{{site.version}}-jar-with-dependencies.jar) {% else %} Only available for stable releases {% endif %}|
Review comment:
But I think we can add `_{{site.scala_version_suffix}}`
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "DELETED",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
}, {
"hash" : "2d4a08211af53289fc8324c0fd0b877960707466",
"status" : "UNKNOWN",
"url" : "TBD",
"triggerID" : "2d4a08211af53289fc8324c0fd0b877960707466",
"triggerType" : "PUSH"
}, {
"hash" : "9064e345ad710b98d63cf01843b6491325f1af38",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3380",
"triggerID" : "9064e345ad710b98d63cf01843b6491325f1af38",
"triggerType" : "PUSH"
}, {
"hash" : "366286c9bd4ae2ca448fa5e1baba2ff122def03c",
"status" : "PENDING",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3406",
"triggerID" : "366286c9bd4ae2ca448fa5e1baba2ff122def03c",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* 2d4a08211af53289fc8324c0fd0b877960707466 UNKNOWN
* 9064e345ad710b98d63cf01843b6491325f1af38 Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3380)
* 366286c9bd4ae2ca448fa5e1baba2ff122def03c Azure: [PENDING](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3406)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi merged pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
JingsongLi merged pull request #12602:
URL: https://github.com/apache/flink/pull/12602
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] danny0405 commented on a change in pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
danny0405 commented on a change in pull request #12602:
URL: https://github.com/apache/flink/pull/12602#discussion_r439234327
##########
File path: docs/dev/table/connectors/formats/orc.md
##########
@@ -0,0 +1,183 @@
+---
+title: "Orc Format"
+nav-title: Orc
+nav-parent_id: sql-formats
+nav-pos: 6
+---
+<!--
+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.
+-->
+
+<span class="label label-info">Format: Serialization Schema</span>
+<span class="label label-info">Format: Deserialization Schema</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+The [Apache Orc](https://orc.apache.org/) format allows to read and write Orc data.
+
+Dependencies
+------------
+
+In order to setup the Orc format, the following table provides dependency information for both
+projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
+
+| Maven dependency | SQL Client JAR |
+| :----------------- | :----------------------|
+| `flink-orc` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-orc{{site.scala_version_suffix}}/{{site.version}}/flink-orc{{site.scala_version_suffix}}-{{site.version}}-jar-with-dependencies.jar) |
+
+How to create a table with Orc format
+----------------
+
+Here is an example to create a table using Filesystem connector and Orc format.
+
+<div class="codetabs" markdown="1">
+<div data-lang="SQL" markdown="1">
+{% highlight sql %}
+CREATE TABLE user_behavior (
+ user_id BIGINT,
+ item_id BIGINT,
+ category_id BIGINT,
+ behavior STRING,
+ ts TIMESTAMP(3),
+ dt STRING
+) PARTITIONED BY (dt) WITH (
+ 'connector' = 'filesystem',
+ 'path' = '/tmp/user_behavior',
+ 'format' = 'orc'
+)
+{% endhighlight %}
+</div>
+</div>
+
+Format Options
+----------------
+
+<table class="table table-bordered">
+ <thead>
+ <tr>
+ <th class="text-left" style="width: 25%">Option</th>
+ <th class="text-center" style="width: 8%">Required</th>
+ <th class="text-center" style="width: 7%">Default</th>
+ <th class="text-center" style="width: 10%">Type</th>
+ <th class="text-center" style="width: 50%">Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><h5>format</h5></td>
+ <td>required</td>
+ <td style="word-wrap: break-word;">(none)</td>
+ <td>String</td>
+ <td>Specify what format to use, here should be 'orc'.</td>
+ </tr>
+ </tbody>
+</table>
+
+Orc format also supports table properties from [Table properties](https://orc.apache.org/docs/hive-config.html#table-properties).
+For example, you can configure `orc.compress=SNAPPY` to enable snappy compression.
+
+Data Type Mapping
+----------------
+
+Orc format type mapping is compatible with Apache Hive.
+The following table lists the type mapping from Flink type to Orc type.
+
+<table class="table table-bordered">
+ <thead>
+ <tr>
+ <th class="text-left">Flink Data Type</th>
+ <th class="text-center">Orc physical type</th>
+ <th class="text-center">Orc logical type</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>CHAR</td>
+ <td>bytes</td>
+ <td>CHAR</td>
+ </tr>
+ <tr>
+ <td>VARCHAR</td>
+ <td>bytes</td>
+ <td>VARCHAR</td>
+ </tr>
+ <tr>
+ <td>STRING</td>
+ <td>bytes</td>
+ <td>STRING</td>
+ </tr>
+ <tr>
+ <td>BOOLEAN</td>
+ <td>long</td>
+ <td>BOOLEAN</td>
+ </tr>
+ <tr>
+ <td>BYTES</td>
+ <td>bytes</td>
+ <td>BINARY</td>
+ </tr>
+ <tr>
+ <td>DECIMAL</td>
+ <td>decimal</td>
+ <td>DECIMAL</td>
+ </tr>
+ <tr>
+ <td>TINYINT</td>
+ <td>long</td>
+ <td>BYTE</td>
+ </tr>
+ <tr>
+ <td>SMALLINT</td>
+ <td>long</td>
+ <td>SHORT</td>
+ </tr>
+ <tr>
+ <td>INT</td>
+ <td>long</td>
+ <td>INT</td>
+ </tr>
+ <tr>
+ <td>BIGINT</td>
+ <td>long</td>
+ <td>LONG</td>
+ </tr>
+ <tr>
+ <td>FLOAT</td>
+ <td>double</td>
+ <td>FLOAT</td>
+ </tr>
+ <tr>
+ <td>DOUBLE</td>
+ <td>double</td>
+ <td>DOUBLE</td>
+ </tr>
+ <tr>
+ <td>DATE</td>
+ <td>long</td>
+ <td>DATE</td>
+ </tr>
+ <tr>
+ <td>TIMESTAMP</td>
+ <td>timestamp</td>
+ <td>TIMESTAMP</td>
+ </tr>
+ </tbody>
+</table>
+
+<span class="label label-danger">Attention</span> Not support complex data type like: Array, Map, Row.
Review comment:
Composite data type: `Array`, `Map` and `Row` are not supported.
##########
File path: docs/dev/table/connectors/formats/orc.md
##########
@@ -0,0 +1,183 @@
+---
+title: "Orc Format"
+nav-title: Orc
+nav-parent_id: sql-formats
+nav-pos: 6
+---
+<!--
+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.
+-->
+
+<span class="label label-info">Format: Serialization Schema</span>
+<span class="label label-info">Format: Deserialization Schema</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+The [Apache Orc](https://orc.apache.org/) format allows to read and write Orc data.
+
+Dependencies
+------------
+
+In order to setup the Orc format, the following table provides dependency information for both
+projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
+
+| Maven dependency | SQL Client JAR |
+| :----------------- | :----------------------|
+| `flink-orc` | [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-orc{{site.scala_version_suffix}}/{{site.version}}/flink-orc{{site.scala_version_suffix}}-{{site.version}}-jar-with-dependencies.jar) |
+
Review comment:
Add `{% if site.is_stable %}` to show the link for stable release ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-643864461
Merging...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] JingsongLi commented on a change in pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
JingsongLi commented on a change in pull request #12602:
URL: https://github.com/apache/flink/pull/12602#discussion_r439356834
##########
File path: docs/dev/table/connectors/formats/orc.md
##########
@@ -0,0 +1,183 @@
+---
+title: "Orc Format"
+nav-title: Orc
+nav-parent_id: sql-formats
+nav-pos: 6
+---
+<!--
+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.
+-->
+
+<span class="label label-info">Format: Serialization Schema</span>
+<span class="label label-info">Format: Deserialization Schema</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+The [Apache Orc](https://orc.apache.org/) format allows to read and write Orc data.
+
+Dependencies
+------------
+
+In order to setup the Orc format, the following table provides dependency information for both
+projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
+
+| Maven dependency | SQL Client JAR |
+| :----------------- | :----------------------|
+| `flink-orc` |{% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-orc{{site.scala_version_suffix}}/{{site.version}}/flink-orc{{site.scala_version_suffix}}-{{site.version}}-jar-with-dependencies.jar) {% else %} Only available for stable releases {% endif %}|
+
+How to create a table with Orc format
+----------------
+
+Here is an example to create a table using Filesystem connector and Orc format.
+
+<div class="codetabs" markdown="1">
+<div data-lang="SQL" markdown="1">
+{% highlight sql %}
+CREATE TABLE user_behavior (
+ user_id BIGINT,
+ item_id BIGINT,
+ category_id BIGINT,
+ behavior STRING,
+ ts TIMESTAMP(3),
+ dt STRING
+) PARTITIONED BY (dt) WITH (
+ 'connector' = 'filesystem',
+ 'path' = '/tmp/user_behavior',
+ 'format' = 'orc'
+)
+{% endhighlight %}
+</div>
+</div>
+
+Format Options
+----------------
+
+<table class="table table-bordered">
+ <thead>
+ <tr>
+ <th class="text-left" style="width: 25%">Option</th>
+ <th class="text-center" style="width: 8%">Required</th>
+ <th class="text-center" style="width: 7%">Default</th>
+ <th class="text-center" style="width: 10%">Type</th>
+ <th class="text-center" style="width: 50%">Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><h5>format</h5></td>
+ <td>required</td>
+ <td style="word-wrap: break-word;">(none)</td>
+ <td>String</td>
+ <td>Specify what format to use, here should be 'orc'.</td>
+ </tr>
+ </tbody>
+</table>
+
+Orc format also supports table properties from [Table properties](https://orc.apache.org/docs/hive-config.html#table-properties).
+For example, you can configure `orc.compress=SNAPPY` to enable snappy compression.
Review comment:
We don't need add all orc properties. I have added Orc doc.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] flinkbot edited a comment on pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
flinkbot edited a comment on pull request #12602:
URL: https://github.com/apache/flink/pull/12602#issuecomment-642565700
<!--
Meta data
{
"version" : 1,
"metaDataEntries" : [ {
"hash" : "c139ede6cd628aac3b30405c63a738c9682007da",
"status" : "SUCCESS",
"url" : "https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282",
"triggerID" : "c139ede6cd628aac3b30405c63a738c9682007da",
"triggerType" : "PUSH"
} ]
}-->
## CI report:
* c139ede6cd628aac3b30405c63a738c9682007da Azure: [SUCCESS](https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=3282)
<details>
<summary>Bot commands</summary>
The @flinkbot bot supports the following commands:
- `@flinkbot run travis` re-run the last Travis build
- `@flinkbot run azure` re-run the last Azure build
</details>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [flink] lirui-apache commented on a change in pull request #12602: [FLINK-18140][doc][orc] Add documentation for ORC format
Posted by GitBox <gi...@apache.org>.
lirui-apache commented on a change in pull request #12602:
URL: https://github.com/apache/flink/pull/12602#discussion_r439287738
##########
File path: docs/dev/table/connectors/formats/orc.md
##########
@@ -0,0 +1,183 @@
+---
+title: "Orc Format"
+nav-title: Orc
+nav-parent_id: sql-formats
+nav-pos: 6
+---
+<!--
+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.
+-->
+
+<span class="label label-info">Format: Serialization Schema</span>
+<span class="label label-info">Format: Deserialization Schema</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+The [Apache Orc](https://orc.apache.org/) format allows to read and write Orc data.
+
+Dependencies
+------------
+
+In order to setup the Orc format, the following table provides dependency information for both
+projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
+
+| Maven dependency | SQL Client JAR |
+| :----------------- | :----------------------|
+| `flink-orc` |{% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-orc{{site.scala_version_suffix}}/{{site.version}}/flink-orc{{site.scala_version_suffix}}-{{site.version}}-jar-with-dependencies.jar) {% else %} Only available for stable releases {% endif %}|
Review comment:
I think it's better to provide the full coordinates of the maven artifact, e.g. `org.apache.flink:flink-orc...`. Or maybe something like
```
<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-orc_{{site.scala_version_suffix}}</artifactId>
<version>{{site.version}}</version>
</dependency>
```
Then users can simply copy it to their pom files.
##########
File path: docs/dev/table/connectors/formats/orc.md
##########
@@ -0,0 +1,183 @@
+---
+title: "Orc Format"
+nav-title: Orc
+nav-parent_id: sql-formats
+nav-pos: 6
+---
+<!--
+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.
+-->
+
+<span class="label label-info">Format: Serialization Schema</span>
+<span class="label label-info">Format: Deserialization Schema</span>
+
+* This will be replaced by the TOC
+{:toc}
+
+The [Apache Orc](https://orc.apache.org/) format allows to read and write Orc data.
+
+Dependencies
+------------
+
+In order to setup the Orc format, the following table provides dependency information for both
+projects using a build automation tool (such as Maven or SBT) and SQL Client with SQL JAR bundles.
+
+| Maven dependency | SQL Client JAR |
+| :----------------- | :----------------------|
+| `flink-orc` |{% if site.is_stable %} [Download](https://repo.maven.apache.org/maven2/org/apache/flink/flink-orc{{site.scala_version_suffix}}/{{site.version}}/flink-orc{{site.scala_version_suffix}}-{{site.version}}-jar-with-dependencies.jar) {% else %} Only available for stable releases {% endif %}|
+
+How to create a table with Orc format
+----------------
+
+Here is an example to create a table using Filesystem connector and Orc format.
+
+<div class="codetabs" markdown="1">
+<div data-lang="SQL" markdown="1">
+{% highlight sql %}
+CREATE TABLE user_behavior (
+ user_id BIGINT,
+ item_id BIGINT,
+ category_id BIGINT,
+ behavior STRING,
+ ts TIMESTAMP(3),
+ dt STRING
+) PARTITIONED BY (dt) WITH (
+ 'connector' = 'filesystem',
+ 'path' = '/tmp/user_behavior',
+ 'format' = 'orc'
+)
+{% endhighlight %}
+</div>
+</div>
+
+Format Options
+----------------
+
+<table class="table table-bordered">
+ <thead>
+ <tr>
+ <th class="text-left" style="width: 25%">Option</th>
+ <th class="text-center" style="width: 8%">Required</th>
+ <th class="text-center" style="width: 7%">Default</th>
+ <th class="text-center" style="width: 10%">Type</th>
+ <th class="text-center" style="width: 50%">Description</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><h5>format</h5></td>
+ <td>required</td>
+ <td style="word-wrap: break-word;">(none)</td>
+ <td>String</td>
+ <td>Specify what format to use, here should be 'orc'.</td>
+ </tr>
+ </tbody>
+</table>
+
+Orc format also supports table properties from [Table properties](https://orc.apache.org/docs/hive-config.html#table-properties).
+For example, you can configure `orc.compress=SNAPPY` to enable snappy compression.
Review comment:
Shall we list all the supported properties? Or maybe we can add link to Orc doc if all the properties are supported.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org