package query

import "cloud.google.com/go/bigquery/internal/query"

Index

Functions

func HasOrderedResults

func HasOrderedResults(sql string) bool

HasOrderedResults checks if a given SQL query returns ordered results. This function uses a naive approach of checking the root level query ( ignoring subqueries, functions calls, etc ) and checking if it contains an ORDER BY clause.

Source Files

order.go

Version
v1.66.2 (latest)
Published
Feb 4, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
21 hours ago

Tools for package owners.