Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stream-Analytics Transformation Update doesn't accept multiline query/SAQL #7268

Open
deepakpatil-aveva opened this issue Feb 7, 2024 · 1 comment
Assignees
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Stream Analytics
Milestone

Comments

@deepakpatil-aveva
Copy link

deepakpatil-aveva commented Feb 7, 2024

Describe the bug

We are updating stream analytics transformation using "az stream-analytics transformation update"
We have multiline query like

WITH {TABLENAME} AS (SELECT * FROM {INPUT NAME} TIMESTAMP BY Date)

-- some comment
SELECT {column1}, {column2}, {column3} INTO {OUTPUT1} FROM {TABLENAME}

-- some comment
SELECT {column1}, {column2}, {column3} INTO {OUTPUT2} FROM {TABLENAME}

-- some comment
SELECT {column1}, {column2}, {column3} INTO {OUTPUT3} FROM {TABLENAME}

Tried different format like

@"
WITH {TABLENAME} AS (SELECT * FROM {INPUT NAME} TIMESTAMP BY Date)

-- some comment
SELECT {column1}, {column2}, {column3} INTO {OUTPUT1} FROM {TABLENAME}

-- some comment
SELECT {column1}, {column2}, {column3} INTO {OUTPUT2} FROM {TABLENAME}

-- some comment
SELECT {column1}, {column2}, {column3} INTO {OUTPUT3} FROM {TABLENAME}
"@

And

{line1} `n{line2} `n{line3}

Still no success.

Used fiddler to check api request payload. Only first line of the query is sent. Remaining lines are ignored.

Related command

az stream-analytics transformation update
--name $TransformationName `
--job-name $JobName `
--resource-group $ResourceGroup `
--streaming-units $StreamingUnits `
--saql $SAQLScript `
--only-show-errors `
| ConvertFrom-Json

Errors

No Errors

Issue script & Debug output

N/A

Expected behavior

Multiline query / SAQL should be accepted

Environment Summary

azure-cli 2.57.0

core 2.57.0
telemetry 1.1.0

Extensions:
azure-devops 0.25.0
stream-analytics 1.0.0

Dependencies:
msal 1.26.0
azure-mgmt-resource 23.1.0b2

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users{user}.azure\cliextensions'

Python (Windows) 3.11.7 (tags/v3.11.7:fa7a6f2, Dec 4 2023, 19:13:08) [MSC v.1937 32 bit (Intel)]

Additional context

No response

@deepakpatil-aveva deepakpatil-aveva added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Feb 7, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot labels Feb 7, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 7, 2024

Thank you for opening this issue, we will look into it.

@yonzhan yonzhan added this to the Backlog milestone Feb 8, 2024
@yonzhan yonzhan added Azure CLI Team The command of the issue is owned by Azure CLI team and removed bug This issue requires a change to an existing behavior in the product in order to be resolved. labels Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Stream Analytics
Projects
None yet
Development

No branches or pull requests

3 participants