Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/explain/functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ func explainFunctionCall(sb *strings.Builder, n *ast.FunctionCall, indent string
}

func explainFunctionCallWithAlias(sb *strings.Builder, n *ast.FunctionCall, alias string, indent string, depth int) {
// Hide credentials the way 26.x EXPLAIN AST does
n = maskFunctionSecrets(n)
// Handle special function transformations that ClickHouse does internally
if handled := handleSpecialFunction(sb, n, alias, indent, depth); handled {
return
Expand Down
217 changes: 217 additions & 0 deletions internal/explain/secret_names.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
package explain

// Generated from ClickHouse 26.8 system.formats and system.table_functions.

var knownFormatNames = map[string]bool{
"Arrow": true,
"ArrowStream": true,
"Avro": true,
"AvroConfluent": true,
"BSONEachRow": true,
"Buffers": true,
"CSV": true,
"CSVWithNames": true,
"CSVWithNamesAndTypes": true,
"CapnProto": true,
"CustomSeparated": true,
"CustomSeparatedIgnoreSpaces": true,
"CustomSeparatedIgnoreSpacesWithNames": true,
"CustomSeparatedIgnoreSpacesWithNamesAndTypes": true,
"CustomSeparatedWithNames": true,
"CustomSeparatedWithNamesAndTypes": true,
"DWARF": true,
"Form": true,
"GeoJSON": true,
"Hash": true,
"HiveText": true,
"JSON": true,
"JSONAsObject": true,
"JSONAsString": true,
"JSONColumns": true,
"JSONColumnsWithMetadata": true,
"JSONCompact": true,
"JSONCompactColumns": true,
"JSONCompactEachRow": true,
"JSONCompactEachRowWithNames": true,
"JSONCompactEachRowWithNamesAndTypes": true,
"JSONCompactEachRowWithProgress": true,
"JSONCompactStrings": true,
"JSONCompactStringsEachRow": true,
"JSONCompactStringsEachRowWithNames": true,
"JSONCompactStringsEachRowWithNamesAndTypes": true,
"JSONCompactStringsEachRowWithProgress": true,
"JSONEachRow": true,
"JSONEachRowWithProgress": true,
"JSONL": true,
"JSONLines": true,
"JSONObjectEachRow": true,
"JSONStrings": true,
"JSONStringsEachRow": true,
"JSONStringsEachRowWithProgress": true,
"LineAsString": true,
"LineAsStringWithNames": true,
"LineAsStringWithNamesAndTypes": true,
"MD": true,
"Markdown": true,
"MsgPack": true,
"MySQLDump": true,
"MySQLWire": true,
"NDJSON": true,
"Native": true,
"Npy": true,
"Null": true,
"ODBCDriver2": true,
"ORC": true,
"One": true,
"PNG": true,
"Parquet": true,
"ParquetMetadata": true,
"PostgreSQLWire": true,
"Pretty": true,
"PrettyCompact": true,
"PrettyCompactMonoBlock": true,
"PrettyCompactNoEscapes": true,
"PrettyCompactNoEscapesMonoBlock": true,
"PrettyJSONEachRow": true,
"PrettyJSONLines": true,
"PrettyMonoBlock": true,
"PrettyNDJSON": true,
"PrettyNoEscapes": true,
"PrettyNoEscapesMonoBlock": true,
"PrettySpace": true,
"PrettySpaceMonoBlock": true,
"PrettySpaceNoEscapes": true,
"PrettySpaceNoEscapesMonoBlock": true,
"Prometheus": true,
"Protobuf": true,
"ProtobufList": true,
"ProtobufSingle": true,
"Puffin": true,
"PuffinMetadata": true,
"Raw": true,
"RawBLOB": true,
"RawWithNames": true,
"RawWithNamesAndTypes": true,
"Regexp": true,
"RowBinary": true,
"RowBinaryWithDefaults": true,
"RowBinaryWithNames": true,
"RowBinaryWithNamesAndTypes": true,
"RowBinaryWithNamesAndTypesAndDefaults": true,
"SQLInsert": true,
"TSKV": true,
"TSV": true,
"TSVRaw": true,
"TSVRawWithNames": true,
"TSVRawWithNamesAndTypes": true,
"TSVWithNames": true,
"TSVWithNamesAndTypes": true,
"TabSeparated": true,
"TabSeparatedRaw": true,
"TabSeparatedRawWithNames": true,
"TabSeparatedRawWithNamesAndTypes": true,
"TabSeparatedWithNames": true,
"TabSeparatedWithNamesAndTypes": true,
"Template": true,
"TemplateIgnoreSpaces": true,
"Values": true,
"Vertical": true,
"XML": true,
}

var knownTableFunctionNames = map[string]bool{
"SQLStandardValues": true,
"arrowFlight": true,
"arrowflight": true,
"azureBlobStorage": true,
"azureBlobStorageCluster": true,
"bigquery": true,
"cluster": true,
"clusterAllReplicas": true,
"cosn": true,
"deltaLake": true,
"deltaLakeAzure": true,
"deltaLakeAzureCluster": true,
"deltaLakeCluster": true,
"deltaLakeLocal": true,
"deltaLakeS3": true,
"deltaLakeS3Cluster": true,
"dictionary": true,
"eval": true,
"executable": true,
"file": true,
"fileCluster": true,
"filesystem": true,
"format": true,
"fuzzJSON": true,
"fuzzQuery": true,
"gcs": true,
"generateRandom": true,
"generateSeries": true,
"generate_series": true,
"hdfs": true,
"hdfsCluster": true,
"hive": true,
"hudi": true,
"hudiCluster": true,
"iceberg": true,
"icebergAzure": true,
"icebergAzureCluster": true,
"icebergCluster": true,
"icebergHDFS": true,
"icebergHDFSCluster": true,
"icebergLocal": true,
"icebergLocalCluster": true,
"icebergS3": true,
"icebergS3Cluster": true,
"input": true,
"jdbc": true,
"loop": true,
"merge": true,
"mergeTreeAnalyzeIndexes": true,
"mergeTreeAnalyzeIndexesUUID": true,
"mergeTreeCodecBlockCounts": true,
"mergeTreeIndex": true,
"mergeTreeProjection": true,
"mergeTreeTextIndex": true,
"mongodb": true,
"mysql": true,
"null": true,
"numbers": true,
"numbers_mt": true,
"odbc": true,
"oss": true,
"paimon": true,
"paimonAzure": true,
"paimonAzureCluster": true,
"paimonCluster": true,
"paimonHDFS": true,
"paimonHDFSCluster": true,
"paimonLocal": true,
"paimonS3": true,
"paimonS3Cluster": true,
"postgresql": true,
"primes": true,
"prometheusQuery": true,
"prometheusQueryRange": true,
"redis": true,
"remote": true,
"remoteSecure": true,
"s3": true,
"s3Cluster": true,
"sqlite": true,
"timeSeriesData": true,
"timeSeriesMetrics": true,
"timeSeriesSamples": true,
"timeSeriesSelector": true,
"timeSeriesTags": true,
"url": true,
"urlCluster": true,
"values": true,
"view": true,
"viewExplain": true,
"viewIfPermitted": true,
"ytsaurus": true,
"zeros": true,
"zeros_mt": true,
}
Loading
Loading