Skip to content

Conversation

Copilot
Copy link
Contributor

@Copilot Copilot AI commented Sep 29, 2025

This PR updates the TQL documentation to reflect the new value aliasing feature introduced in GreptimeTeam/greptimedb#7041.

Changes

Updated EVAL Syntax

The TQL EVAL command now supports an optional AS alias clause to provide meaningful names for query results:

TQL [EVAL | EVALUATE] (start, end, step) expr [AS alias]

Added Documentation and Examples

  • Added explanation of the optional AS alias clause in the syntax section
  • Included a practical example showing the feature in action:
    TQL eval (0, 10, '5s') {__name__="test"} AS test_series;
  • Updated both English and Chinese documentation for consistency

Files Updated

  • Current and v0.17 English documentation
  • Current and v0.17 Chinese documentation

The documentation now accurately reflects this enhancement, allowing users to create more readable query results by providing custom column names instead of relying on default naming conventions.

Verification

  • ✅ Documentation builds successfully
  • ✅ Markdown formatting validated
  • ✅ Multilingual consistency maintained

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • googlechromelabs.github.io
    • Triggering command: node install.mjs (dns block)
  • https://storage.googleapis.com/chrome-for-testing-public/137.0.7151.119/linux64/chrome-headless-shell-linux64.zip
    • Triggering command: node install.mjs (http block)
  • https://storage.googleapis.com/chrome-for-testing-public/137.0.7151.119/linux64/chrome-linux64.zip

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update docs for feat: supports value aliasing in TQL</issue_title>
<issue_description>A document change request is generated from GreptimeTeam/greptimedb#7041</issue_description>

Comments on the Issue (you are @copilot in this section)

Fixes #2156

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copy link

cloudflare-workers-and-pages bot commented Sep 29, 2025

Deploying greptime-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: a2aa190
Status: ✅  Deploy successful!
Preview URL: https://5574dff6.greptime-docs.pages.dev
Branch Preview URL: https://copilot-fix-a7222674-53c4-43.greptime-docs.pages.dev

View logs

@Copilot Copilot AI changed the title [WIP] Update docs for feat: supports value aliasing in TQL docs: Add TQL value aliasing documentation for EVAL command Sep 29, 2025
@Copilot Copilot AI requested a review from nicecui September 29, 2025 07:47
Copilot finished work on behalf of nicecui September 29, 2025 07:47
@nicecui nicecui requested a review from killme2008 September 30, 2025 02:52
@nicecui nicecui closed this Sep 30, 2025
@killme2008 killme2008 reopened this Sep 30, 2025
@killme2008
Copy link
Contributor

Looks good. It's a draft, i will update it after the PR are merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update docs for feat: supports value aliasing in TQL
3 participants