[gcp/billing] always quote table name identifier#26870
[gcp/billing] always quote table name identifier#26870endorama merged 3 commits intoelastic:masterfrom
Conversation
|
Pinging @elastic/integrations (Team:Integrations) |
|
This pull request doesn't have a |
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
|
@kaiyan-sheng does this change require an entry in the |
Yep I think this deserves a changelog entry under bugs. |
|
@kaiyan-sheng May you guide me in doing that? Which file should I edit? Which version will this bugfix be part of? |
|
@endorama Of course! So changelog for new features and bug fixes you think should be exposed to users will go into |
kaiyan-sheng
left a comment
There was a problem hiding this comment.
I tested this PR and it works with my gcp billing account. But the table name doesn't contain special characters.
|
@kaiyan-sheng CHANGELOG updated. I was wondering if this change should be backported to |
|
@endorama LGTM. Thanks for the fix! Yes this will need to be backported into 7.x and also 7.14 branch since it's a bug fix. |
(cherry picked from commit f731832)
(cherry picked from commit f731832)
* master: (61 commits) Add disk queue unit tests based on the queuetest package [Heartbeat] redact authorization headers from logger (elastic#26892) Expose custom process metrics (elastic#26912) [gcp/billing] always quote table name identifier (elastic#26870) Add Beats central management removal to BCs (elastic#26400) Add custom suffix to identifiers in filestream input when needed (elastic#26669) Update asa-ftd-pipeline.yml (elastic#26265) Use common host parser in vsphere module (elastic#26904) [automation] Update go release version 1.16.6 (elastic#26860) Skip flaky test: filestream and harvester group (elastic#26728) [Filebeat] Remove alias fields from Suricata and Traefik module mappings (elastic#26627) docs: apm-server.auth (elastic#26831) [Automation] Update elastic stack version to 8.0.0-2f008f4a for testing (elastic#26881) Clarify the scope of start/end multiline example (elastic#26786) [Heartbeat]: update Node.js version for synthetics (elastic#26867) [fix][httpjson] Fix incorrect key for template data (elastic#26848) [httpjson] Add value_type parameter to httpjson transforms (elastic#26847) [Heartbeat]: capture error from journey/end events (elastic#26781) [Winlogbeat] Fixes for wineventlog experimental api (elastic#26826) Set agent.id to Fleet Agent ID for each metric/log monitoring input (elastic#26776) ...
(cherry picked from commit f731832)
What does this PR do?
Extract query generation and use quoted identifiers when querying BigQuery from GCP Billing module.
Why is it important?
When users specify a table name containing special characters (not
A-Z a-z _) the query would fail.This is because the code is using an Unquoted identifier for the table name that may contain only a limited characters set.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs