summaryrefslogtreecommitdiffstats
path: root/yql/essentials/docs/en/syntax
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-03-26 11:50:54 +0300
committerrobot-piglet <[email protected]>2025-03-26 12:01:08 +0300
commit9d65201e9a1d3c2ca77ec9bd59fdfe46c682ef72 (patch)
tree71acf255bb66ca17de37a0be97e906d9d7968444 /yql/essentials/docs/en/syntax
parent3efd8c9dd26c3134800bab592ece7586cfca5943 (diff)
Intermediate changes
commit_hash:60bc269353f8816a6932f852e22d8a9918b77dab
Diffstat (limited to 'yql/essentials/docs/en/syntax')
-rw-r--r--yql/essentials/docs/en/syntax/export_import.md27
1 files changed, 13 insertions, 14 deletions
diff --git a/yql/essentials/docs/en/syntax/export_import.md b/yql/essentials/docs/en/syntax/export_import.md
index 15fd0714a41..1e70fa2457f 100644
--- a/yql/essentials/docs/en/syntax/export_import.md
+++ b/yql/essentials/docs/en/syntax/export_import.md
@@ -1,30 +1,31 @@
-# Putting part of the query into a separate file
+# EXPORT and IMPORT
-Here's the mechanism for putting part of the query into a separate attached file:
+A mechanism for putting part of the query into a separate attached file. To use the mechanism, you need to set the following pragma in the query:
-* [PRAGMA Library](pragma.md#library) marks the attached file as available for import.
+* [PRAGMA Library](pragma.md#library) &mdash; marks the attached file as available for import.
-## `Export`
+## EXPORT
-* `EXPORT $my_symbol1, $my_symbol2, ...;` lists the names of named expressions in the library that are available for import.
+`EXPORT $my_symbol1, $my_symbol2, ...;` lists the names of named expressions in the library that are available for import.
-## `Import`
+## IMPORT
-* `IMPORT my_library SYMBOLS $my_symbol1, $my_symbol2, ...;` makes the listed named expressions available for further use.
+`IMPORT my_library SYMBOLS $my_symbol1, $my_symbol2, ...;` makes the listed named expressions available for further use.
{% note info %}
-You can use the library to include [lambdas](expressions.md#lambda), [actions](action.md), [named subqueries](subquery.md), constants and expressions, but **not subqueries or aggregate functions**.
+[Lambdas](expressions.md#lambda), [actions](action.md), [named subqueries](subquery.md), constant values, and expressions can be transferred to the library, but __subqueries or aggregate functions__ cannot be.
{% endnote %}
{% note warning %}
-The file linked by the [PRAGMA Library](pragma.md#library) must be attached to the query. **You can't use a [PRAGMA File](pragma.md#file) for this purpose**.
+The file linked by the [PRAGMA Library](pragma.md#library) must be attached to the query. __You can't use [PRAGMA File](pragma.md#file) for this purpose__.
{% endnote %}
-#### Examples
+
+## Example
my_lib.sql:
@@ -32,8 +33,8 @@ my_lib.sql:
$Square = ($x) -> { RETURN $x * $x; };
$Sqrt = ($x) -> { RETURN Math::Sqrt($x); };
--- Aggregate functions created by
--- AggregationFactory, it makes sense to add it to the library
+-- Aggregation functions created using
+-- AggregationFactory, convenient to transfer to the library
$Agg_sum = AggregationFactory("SUM");
$Agg_max = AggregationFactory("MAX");
@@ -59,5 +60,3 @@ FROM (
)
```
-
-