cwielenb/CNCF-Dataset huggingface dataset:
Project: YugabyteDB (App Definition and Development / Database)
File: yba_storage-config_delete.md

Delete a YugabyteDB Anywhere storage configuration Delete a storage configuration in YugabyteDB Anywhere ``` yba storage-config delete [flags] ``` ``` -n, --name string [Required] The name of the storage configuration to be deleted. -f, --force [Optional] Bypass the prompt for non-interactive usage. -h, --help help for delete ``` ``` -a, --apiToken string YugabyteDB Anywhere api token. --config string Config file, defaults to $HOME/.yba-cli.yaml --debug Use debug mode, same as --logLevel debug. --disable-color Disable colors in output. (default false) -H, --host string YugabyteDB Anywhere Host (default "http://localhost:9000") -l, --logLevel string Select the desired log level format. Allowed values: debug, info, warn, error, fatal. (default "info") -o, --output string Select the desired output format. Allowed values: table, json, pretty. (default "table") --timeout duration Wait command timeout, example: 5m, 1h. (default 168h0m0s) --wait Wait until the task is completed, otherwise it will exit immediately. (default true) ``` - Manage YugabyteDB Anywhere storage configurations
Project: KubeVela (App Definition and Development / Application Definition & Image Build)
File: affinity.eg.md

```yaml apiVersion: core.oam.dev/v1beta1 kind: Application metadata: name: busybox spec: components: name: busybox type: webservice properties: image: busybox cmd: ["sleep", "86400"] labels: label-key: label-value to-delete-label-key: to-delete-label-value traits: type: affinity properties: podAffinity: preferred: weight: 1 podAffinityTerm: labelSelector: matchExpressions: key: "secrity" values: ["S1"] namespaces: ["default"] topologyKey: "kubernetes.io/hostname" ```
Project: YugabyteDB (App Definition and Development / Database)
File: build-the-code.md

<!-- +++ private = true +++ --> Assuming is checked out in `~/code/yugabyte-db`, do the following: ```sh cd ~/code/yugabyte-db ./yb_build.sh release ``` The command above will build the release configuration, add the binaries into the `build/release-<compiler>-dynamic-ninja` directory, and create a `build/latest` symlink to that directory. {{< note title="Note" >}} If you see errors, such as `internal compiler error: Killed`, the system has probably run out of memory. Try again by running the build script with less concurrency, for example, `-j1`. {{< /note >}} {{< note title="Note" >}} If you get an error message such as ValueError: Found no third-party release archives to download for OS type ubuntu20.04, compiler type matching gcc11, architecture x8664, islinuxbrew=False. See more details above. it means that there is no available for that build configuration. Check the output that precedes the message for supported configurations. {{< /note >}} For more details about building and testing, refer to .
Project: Flink (App Definition and Development / Streaming & Messaging)
File: cte.md

title: "CTE" weight: 9 type: docs <!-- 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. --> A Common Table Expression (CTE) is a temporary result set derived from a query specified in a `WITH` clause, which immediately precedes a `SELECT` or `INSERT` keyword. The CTE is defined only with the execution scope of a single statement, and can be referred in the scope. ```sql withClause: WITH cteClause [ , ... ] cteClause: cte_name AS (select statement) ``` {{< hint warning >}} Note: The `WITH` clause is not supported within Sub-Query block CTEs are supported in Views, `CTAS` and `INSERT` statement are not supported {{< /hint >}} ```sql WITH q1 AS ( SELECT key FROM src WHERE key = '5') SELECT * FROM q1; -- chaining CTEs WITH q1 AS ( SELECT key FROM q2 WHERE key = '5'), q2 AS ( SELECT key FROM src WHERE key = '5') SELECT * FROM (SELECT key FROM q1) a; -- insert example WITH q1 AS ( SELECT key, value FROM src WHERE key = '5') FROM q1 INSERT OVERWRITE TABLE t1 SELECT *; -- ctas example CREATE TABLE t2 AS WITH q1 AS ( SELECT key FROM src WHERE key = '4') SELECT * FROM q1; ```
Project: YugabyteDB (App Definition and Development / Database)
File: dcl_revoke.md

title: REVOKE statement [YSQL] headerTitle: REVOKE linkTitle: REVOKE description: Use the REVOKE statement to remove access privileges from one or more roles. menu: v2.18: identifier: dcl_revoke parent: statements type: docs Use the `REVOKE` statement to remove access privileges from one or more roles. {{%ebnf%}} revoke_table, revoketablecol, revoke_seq, revoke_db, revoke_domain, revoke_schema, revoke_type, revoke_role {{%/ebnf%}} Any role has the sum of all privileges assigned to it. So, if `REVOKE` is used to revoke `SELECT` from `PUBLIC`, then it does not mean that all roles have lost `SELECT` privilege. If a role had `SELECT` granted directly to it or inherited it via a group, then it can continue to hold the `SELECT` privilege. If `GRANT OPTION FOR` is specified, only the grant option for the privilege is revoked, not the privilege itself. Otherwise, both the privilege and the grant option are revoked. Similarly, while revoking a role, if `ADMIN OPTION FOR` is specified, then only the admin option for the privilege is revoked. If a user holds a privilege with grant option and has granted it to other users, then revoking the privilege from the first user will also revoke it from dependent users if `CASCADE` is specified. Otherwise, the `REVOKE` will fail. When revoking privileges on a table, the corresponding column privileges (if any) are automatically revoked on each column of the table, as well. On the other hand, if a role has been granted privileges on a table, then revoking the same privileges from individual columns will have no effect. Revoke SELECT privilege for PUBLIC on table 'stores' ```plpgsql yugabyte=# REVOKE SELECT ON stores FROM PUBLIC; ``` Remove user John from SysAdmins group. ```plpgsql yugabyte=# REVOKE SysAdmins FROM John; ```
Project: YDB (App Definition and Development / Database)
File: define_do.md

Specifies a named action that is a parameterizable block of multiple top-level expressions. Syntax `DEFINE ACTION`: action definition. that will be used to access the defined action further in the query. The values of parameter names are listed in parentheses. `AS` keyword. List of top-level expressions. `END DEFINE`: The marker of the last expression inside the action. One or more of the last parameters can be marked with a question mark `?` as optional. If they are omitted during the call, they will be assigned the `NULL` value. Executes an `ACTION` with the specified parameters. Syntax `DO`: Executing an action. The named expression for which the action is defined. The values to be used as parameters are listed in parentheses. `EMPTY_ACTION`: An action that does nothing. {% if feature_mapreduce %} <!-- In fact, if user file system integration is supported in the product. YQL service over YDB may also be here. --> {% note info %} In large queries, you can use separate files for action definition and include them to the main query using + so that instead of one long text you can have several logical parts that are easier to navigate. An important nuance: the `USE my_cluster;` directive in the import query does not affect behavior of actions declared in other files. {% endnote %} {% endif %} Example ```yql DEFINE ACTION $hello_world($name, $suffix?) AS $name = $name ?? ($suffix ?? "world"); SELECT "Hello, " || $name || "!"; END DEFINE; DO EMPTY_ACTION(); DO $hello_world(NULL); DO $hello_world("John"); DO $hello_world(NULL, "Earth"); ```
Project: ArangoDB (App Definition and Development / Database)
File: error.md

+++ title = "`static auto &&_error(Impl &&) noexcept`" description = "Returns a reference to the error in the implementation passed in. Constexpr, never throws." categories = ["observers"] weight = 260 +++ Returns a reference to the error in the implementation passed in. No checking is done to ensure there is an error. Constexpr where possible. Requires: Always available. Complexity: Constant time. Guarantees: Never throws an exception.
Project: Beam (App Definition and Development / Streaming & Messaging)
File: quickstart-go.md

title: "Beam Quickstart for Go" <!-- Licensed 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. --> This Quickstart will walk you through executing your first Beam pipeline to run , written using Beam's , on a of your choice. If you're interested in contributing to the Apache Beam Go codebase, see the . {{< toc >}} The Beam SDK for Go requires `go` version 1.20 or newer. It can be downloaded . Check what go version you have by running: {{< highlight >}} go version {{< /highlight >}} If you are unfamiliar with Go, see the . The Apache Beam directory has many examples. All examples can be run by passing the required arguments described in the examples. For example, to run `wordcount`, run: {{< runner direct >}} go run github.com/apache/beam/sdks/v2/go/examples/wordcount@latest --input "gs://apache-beam-samples/shakespeare/kinglear.txt" --output counts less counts {{< /runner >}} {{< runner dataflow >}} go run github.com/apache/beam/sdks/v2/go/examples/wordcount@latest --input gs://dataflow-samples/shakespeare/kinglear.txt \ --output gs://<your-gcs-bucket>/counts \ --runner dataflow \ --project your-gcp-project \ --region your-gcp-region \ --temp_location gs://<your-gcs-bucket>/tmp/ \ --staging_location gs://<your-gcs-bucket>/binaries/ {{< /runner >}} {{< runner spark >}} ./gradlew :runners:spark:3:job-server:runShadow -PsparkMasterUrl=spark://localhost:7077 go run github.com/apache/beam/sdks/v2/go/examples/wordcount@latest --input <PATHTOINPUT_FILE> \ --output counts \ --runner spark \ --endpoint localhost:8099 {{< /runner >}} Learn more about the and look through the . Walk through these WordCount examples in the . Clone the . Take a self-paced tour through our . Dive in to some of our favorite . Join the Beam mailing list. Please don't hesitate to if you encounter any issues!
Project: ClickHouse (App Definition and Development / Database)
File: v21.2.7.11-stable.md

sidebar_position: 1 sidebar_label: 2022 Backported in : Fix the metadata leak when the ReplicatedMergeTree with custom (non default) ZooKeeper cluster is dropped. (). Backported in : Fix Avro format parsing for Kafka. Fixes . (). Backported in : Fix possible error ` Cannot find column` when `optimizeskipunused_shards` is enabled and zero shards are used. (). Backported in : Fix fsyncpartdirectory for horizontal merge. (). Backported in : Fix distributed requests cancellation (for example simple select from multiple shards with limit, i.e. `select from remote('127.{2,3}', system.numbers) limit 100`) with `asyncsocketfor_remote=1`. (). Backported in : Fix possible crashes in aggregate functions with combinator Distinct, while using two-level aggregation. This is a follow-up fix of https://github.com/ClickHouse/ClickHouse/pull/18365 . Can only reproduced in production env. No test case available yet. cc @CurtizJ. (). Backported in : Reverted that may cause significant increase in memory usage while loading external dictionaries of hashed type. This closes . (). Backported in : The function `decrypt` was lacking a check for the minimal size of data encrypted in AEAD mode. This closes . (). LRUCache fix exception unsafe element insertion ().
Project: StarRocks (App Definition and Development / Database)
File: months_diff.md

displayed_sidebar: "English" Returns the month difference between two date expressions (`expr1` `expr2`), accurate to the month. ```Haskell BIGINT months_diff(DATETIME expr1,DATETIME expr2); ``` `expr1`: the end time. It must be of the DATETIME or DATE type. `expr2`: the start time. It must be of the DATETIME or DATE type. Returns a BIGINT value. NULL is returned if the date does not exist, for example, 2022-02-29. ```Plain select months_diff('2010-11-30 23:59:59', '2010-1-1 23:59:59'); ++ | months_diff('2010-11-30 23:59:59', '2010-1-1 23:59:59') | ++ | 10 | ++ select months_diff('2010-11-30', '2010-1-1'); ++ | months_diff('2010-11-30', '2010-1-1') | ++ | 10 | ++ ```
Project: KICS (Provisioning / Security & Compliance)
File: 818f38ed-8446-4132-9c03-474d49e10195.md

title: SNS Topic Publicity Has Allow and NotAction Simultaneously hide: toc: true navigation: true <style> .highlight .hll { background-color: #ff171742; } .md-content { max-width: 1100px; margin: 0 auto; } </style> Query id: 818f38ed-8446-4132-9c03-474d49e10195 Query name: SNS Topic Publicity Has Allow and NotAction Simultaneously Platform: CloudFormation Severity: <span style="color:#ff7213">Medium</span> Category: Access Control URL: SNS topic Publicity should not have 'Effect: Allow' and argument 'NotAction' at the same time. If it has 'Effect: Allow', the argument stated should be 'Action'.<br> ```yaml title="Positive test num. 1 - yaml file" hl_lines="7" AWSTemplateFormatVersion: 2010-09-09 Description: A sample template Resources: mysnspolicy: Type: AWS::SNS::TopicPolicy Properties: PolicyDocument: Id: MyTopicPolicy Version: '2012-10-17' Statement: Sid: MyStatementId Effect: Allow NotAction: "s3:DeleteBucket" Resource: "arn:aws:s3:::*" Sid: MyStatementId2 Effect: Allow NotAction: "iam:*" Resource: "*" Topics: !Ref mytopic ``` ```json title="Positive test num. 2 - json file" hl_lines="8" { "AWSTemplateFormatVersion": "2010-09-09T00:00:00Z", "Description": "A sample template", "Resources": { "mysnspolicy": { "Type": "AWS::SNS::TopicPolicy", "Properties": { "PolicyDocument": { "Id": "MyTopicPolicy", "Version": "2012-10-17", "Statement": [ { "NotAction": "s3:DeleteBucket", "Resource": "arn:aws:s3:::*", "Sid": "MyStatementId", "Effect": "Allow" }, { "Sid": "MyStatementId2", "Effect": "Allow", "NotAction": "iam:*", "Resource": "*" } ] }, "Topics": [ "mytopic" ] } } } } ``` ```yaml title="Negative test num. 1 - yaml file" AWSTemplateFormatVersion: 2010-09-09 Description: A sample template Resources: mysnspolicy: Type: AWS::SNS::TopicPolicy Properties: PolicyDocument: Id: MyTopicPolicy Version: '2012-10-17' Statement: Sid: Mystatementid Effect: Allow Principal: AWS: !GetAtt myuser.Arn Action: sns:Publish Resource: "*" Topics: !Ref mytopic ``` ```json title="Negative test num. 2 - json file" { "Resources": { "mysnspolicy": { "Type": "AWS::SNS::TopicPolicy", "Properties": { "PolicyDocument": { "Id": "MyTopicPolicy", "Version": "2012-10-17", "Statement": [ { "Sid": "Mystatementid", "Effect": "Allow", "Principal": { "AWS": "myuser.Arn" }, "Action": "sns:Publish", "Resource": "*" } ] }, "Topics": [ "mytopic" ] } } }, "AWSTemplateFormatVersion": "2010-09-09T00:00:00Z", "Description": "A sample template" } ```
Project: StarRocks (App Definition and Development / Database)
File: is_role_in_session.md

displayed_sidebar: "English" Verifies whether a role (or a nested role) is active in the current session. This function is supported from v3.1.4 onwards. ```Haskell BOOLEAN isroleinsession(VARCHAR rolename); ``` `role_name`: the role you want to verify (can also be a nested role). Supported data type is VARCHAR. Returns a BOOLEAN value. `1` indicates the role is active in the current session. `0` indicates the opposite. Create roles and a user. ```sql -- Create three roles. create role r1; create role r2; create role r3; -- Create user u1. create user u1; -- Pass roles r2 and r3 to r1, and grant r1 to user u1. This way, user u1 has three roles: r1, r2, and r3. grant r3 to role r2; grant r2 to role r1; grant r1 to user u1; -- Switch to user u1 and perform operations as u1. execute as u1 with no revert; ``` Verify whether `r1` is active. The result shows this role is not active. ```plaintext select isrolein_session("r1"); +--+ | isrolein_session('r1') | +--+ | 0 | +--+ ``` Run the command to activate `r1` and use `isrolein_session` to verify whether the role is active. The result shows `r1` is active and roles `r2` and `r3` that are nested in `r1` are also active. ```sql set role "r1"; select isrolein_session("r1"); +--+ | isrolein_session('r1') | +--+ | 1 | +--+ select isrolein_session("r2"); +--+ | isrolein_session('r2') | +--+ | 1 | +--+ select isrolein_session("r3"); +--+ | isrolein_session('r3') | +--+ | 1 | +--+ ```
Project: StarRocks (App Definition and Development / Database)
File: transform_keys.md

displayed_sidebar: "English" Transforms keys in a map using a and produces a new key for each entry in the map. This function is supported from v3.1 onwards. ```Haskell MAP transformkeys(lambdafunc, any_map) ``` `lambdafunc` can also be placed after `anymap`: ```Haskell MAP transformkeys(anymap, lambda_func) ``` `any_map`: the Map. `lambdafunc`: the Lambda expression you want to apply to `anymap`. Returns a map value where the data types of keys are determined by the result of the Lambda expression and the data types of values are the same as values in `any_map`. If any input parameter is NULL, NULL is returned. If a key or value in the original map is NULL, NULL is processed as a normal value. The Lambda expression must have two parameters. The first parameter represents the key. The second parameter represents the value. The following example uses to generate a map value `{1:"ab",3:"cdd",2:null,null:"abc"}`. Then the Lambda expression is applied to each key to increment the key by 1. ```SQL mysql> select transformkeys((k,v)->(k+1), colmap) from (select mapfromarrays([1,3,null,2,null],['ab','cdd',null,null,'abc']) as col_map)A; ++ | transformkeys((k, v) -> k + 1, colmap) | ++ | {2:"ab",4:"cdd",3:null,null:"abc"} | ++ ```
Project: Meshery (Provisioning / Automation & Configuration)
File: kusk-gateway.md

layout: integration title: Kusk Gateway subtitle: Collaborative and visual infrastructure as code for Kusk Gateway image: /assets/img/integrations/kusk-gateway/icons/color/kusk-gateway-color.svg permalink: extensibility/integrations/kusk-gateway docURL: https://docs.meshery.io/extensibility/integrations/kusk-gateway description: integrations-category: Orchestration & Management integrations-subcategory: API Gateway registrant: Artifact Hub components: name: envoy-fleet colorIcon: assets/img/integrations/kusk-gateway/components/envoy-fleet/icons/color/envoy-fleet-color.svg whiteIcon: assets/img/integrations/kusk-gateway/components/envoy-fleet/icons/white/envoy-fleet-white.svg description: name: static-route colorIcon: assets/img/integrations/kusk-gateway/components/static-route/icons/color/static-route-color.svg whiteIcon: assets/img/integrations/kusk-gateway/components/static-route/icons/white/static-route-white.svg description: name: api colorIcon: assets/img/integrations/kusk-gateway/components/api/icons/color/api-color.svg whiteIcon: assets/img/integrations/kusk-gateway/components/api/icons/white/api-white.svg description: featureList: [ "Rapidly prototype your APIs by mocking your API responses", " Protect your endpoints with automatic request and response validations", "Configure critical policies like request timeouts and CORS with no coding required." ] howItWorks: "Collaborative Infrastructure as Code" howItWorksDetails: "Collaboratively manage infrastructure with your coworkers synchronously sharing the same designs." language: en list: include type: extensibility category: integrations
Project: ClickHouse (App Definition and Development / Database)
File: numbers.md

slug: /en/sql-reference/table-functions/numbers sidebar_position: 145 sidebar_label: numbers `numbers(N)` Returns a table with the single number column (UInt64) that contains integers from 0 to N-1. `numbers(N, M)` - Returns a table with the single number column (UInt64) that contains integers from N to (N + M - 1). `numbers(N, M, S)` - Returns a table with the single number column (UInt64) that contains integers from N to (N + M - 1) with step S. Similar to the `system.numbers` table, it can be used for testing and generating successive values, `numbers(N, M)` more efficient than `system.numbers`. The following queries are equivalent: ``` sql SELECT * FROM numbers(10); SELECT * FROM numbers(0, 10); SELECT * FROM system.numbers LIMIT 10; SELECT * FROM system.numbers WHERE number BETWEEN 0 AND 9; SELECT * FROM system.numbers WHERE number IN (0, 1, 2, 3, 4, 5, 6, 7, 8, 9); ``` And the following queries are equivalent: ``` sql SELECT number * 2 FROM numbers(10); SELECT (number - 10) * 2 FROM numbers(10, 10); SELECT * FROM numbers(0, 20, 2); ``` Examples: ``` sql -- Generate a sequence of dates from 2010-01-01 to 2010-12-31 select toDate('2010-01-01') + number as d FROM numbers(365); ```
Project: YDB (App Definition and Development / Database)
File: starts_ends_with.md

Checking for a prefix or suffix in a string. Required arguments: Source string; The substring being searched for. The arguments can be of the `String` or `Utf8` type and can be optional. Examples ```yql SELECT StartsWith("abcefg", "abc") AND EndsWith("abcefg", "efg"); -- true ``` ```yql SELECT StartsWith("abcefg", "efg") OR EndsWith("abcefg", "abc"); -- false ``` ```yql SELECT StartsWith("abcd", NULL); -- null ``` ```yql SELECT EndsWith(NULL, Utf8("")); -- null ```
Project: StarRocks (App Definition and Development / Database)
File: regexp_extract.md

displayed_sidebar: "English" This function returns the first matching substring in the target value which matches the regular expression pattern. It extracts the item in pos that matches the pattern. The pattern must completely match some parts of str so that the function can return parts needed to be matched in the pattern. If no matches are found, it will return an empty string. ```Haskell VARCHAR regexp_extract(VARCHAR str, VARCHAR pattern, int pos) ``` ```Plain Text MySQL > SELECT regexp_extract('AbCdE', '([[:lower:]]+)C([[:lower:]]+)', 1); +-+ | regexp_extract('AbCdE', '([[:lower:]]+)C([[:lower:]]+)', 1) | +-+ | b | +-+ MySQL > SELECT regexp_extract('AbCdE', '([[:lower:]]+)C([[:lower:]]+)', 2); +-+ | regexp_extract('AbCdE', '([[:lower:]]+)C([[:lower:]]+)', 2) | +-+ | d | +-+ ``` REGEXP_EXTRACT,REGEXP,EXTRACT