-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: skip path validation if with additional includes
- Loading branch information
Showing
6 changed files
with
98 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
sdk/ml/azure-ai-ml/tests/test_configs/internal/component_with_code/component_spec.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
$schema: https://componentsdk.azureedge.net/jsonschema/ScopeComponent.json | ||
|
||
name: convert2ss | ||
version: 0.0.1 | ||
display_name: Convert Text to StructureStream | ||
|
||
type: ScopeComponent | ||
|
||
is_deterministic: True | ||
|
||
tags: | ||
org: bing | ||
project: relevance | ||
|
||
description: Convert adls test data to SS format | ||
|
||
inputs: | ||
TextData: | ||
type: [AnyFile, AnyDirectory] | ||
description: text file on ADLS storage | ||
ExtractionClause: | ||
type: string | ||
description: the extraction clause, something like "column1:string, column2:int" | ||
outputs: | ||
SSPath: | ||
type: CosmosStructuredStream | ||
description: the converted structured stream | ||
|
||
code: ./scope | ||
|
||
scope: | ||
script: convert2ss.script | ||
# to reference the inputs/outputs in your script | ||
# you must define the argument name of your intpus/outputs in args section | ||
args: >- | ||
Output_SSPath {outputs.SSPath} | ||
Input_TextData {inputs.TextData} | ||
ExtractionClause {inputs.ExtractionClause} |
8 changes: 8 additions & 0 deletions
8
sdk/ml/azure-ai-ml/tests/test_configs/internal/scope-component/scope/convert2ss.script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#DECLARE Output_stream string = @@Output_SSPath@@; | ||
#DECLARE In_Data string =@"@@Input_TextData@@"; | ||
|
||
RawData = EXTRACT @@ExtractionClause@@ FROM @In_Data | ||
USING DefaultTextExtractor(); | ||
|
||
|
||
OUTPUT RawData TO SSTREAM @Output_stream; |