source_file
comment "// Copyright 2016 The Cockroach Authors."
comment "//"
comment "// Use of this software is governed by the CockroachDB Softw"...
comment "// included in the /LICENSE file."
comment "// Package faketreeeval provides fake implementations of tre"...
package_clause
package "package"
package_identifier "faketreeeval"
import_declaration (+130 nodes collapsed)
comment "// DummySequenceOperators implements the eval.SequenceOperat"...
comment "// returning errors."
type_declaration
type "type"
type_spec
type_identifier "DummySequenceOperators"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "eval"
. "."
type_identifier "SequenceOperators"
= "="
expression_list
unary_expression
& "&"
composite_literal
type_identifier "DummySequenceOperators"
literal_value
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "errSequenceOperators"
= "="
expression_list
call_expression
selector_expression
identifier "unimplemented"
. "."
field_identifier "NewWithIssue"
argument_list
( "("
int_literal "42508"
, ","
interpreted_string_literal
" "\""
interpreted_string_literal_content "cannot evaluate scalar expressions containing sequence opera"...
" "\""
) ")"
comment "// GetSerialSequenceNameFromColumn is part of the eval.Seque"...
method_declaration (+68 nodes collapsed)
comment "// ResolveTableName is part of the eval.DatabaseCatalog inte"...
method_declaration (+59 nodes collapsed)
comment "// SchemaExists is part of the eval.DatabaseCatalog interfac"...
method_declaration (+53 nodes collapsed)
comment "// HasAnyPrivilegeForSpecifier is part of the eval.DatabaseC"...
method_declaration (+77 nodes collapsed)
comment "// IncrementSequenceByID is part of the eval.SequenceOperato"...
method_declaration (+51 nodes collapsed)
comment "// GetLatestValueInSessionForSequenceByID implements the eva"...
comment "// interface."
method_declaration (+51 nodes collapsed)
comment "// GetLastSequenceValueByID implements the eval.SequenceOper"...
method_declaration (+56 nodes collapsed)
comment "// SetSequenceValueByID implements the eval.SequenceOperator"...
method_declaration (+50 nodes collapsed)
comment "// DummyRegionOperator implements the tree.RegionOperator in"...
comment "// returning errors."
type_declaration
type "type"
type_spec
type_identifier "DummyRegionOperator"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "eval"
. "."
type_identifier "RegionOperator"
= "="
expression_list
unary_expression
& "&"
composite_literal
type_identifier "DummyRegionOperator"
literal_value
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "errRegionOperator"
= "="
expression_list
call_expression
selector_expression
identifier "unimplemented"
. "."
field_identifier "NewWithIssue"
argument_list
( "("
int_literal "42508"
, ","
interpreted_string_literal
" "\""
interpreted_string_literal_content "cannot evaluate scalar expressions containing region operati"...
" "\""
) ")"
comment "// CurrentDatabaseRegionConfig is part of the eval.RegionOpe"...
method_declaration (+50 nodes collapsed)
comment "// ValidateAllMultiRegionZoneConfigsInCurrentDatabase is par"...
method_declaration (+38 nodes collapsed)
comment "// ResetMultiRegionZoneConfigsForTable is part of the eval.R"...
comment "// interface."
method_declaration (+46 nodes collapsed)
comment "// ResetMultiRegionZoneConfigsForDatabase is part of the eva"...
comment "// interface."
method_declaration (+42 nodes collapsed)
comment "// DummyStreamManagerFactory implements the eval.StreamManag"...
comment "// returning errors."
type_declaration
type "type"
type_spec
type_identifier "DummyStreamManagerFactory"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
comment "// GetReplicationStreamManager implements the eval.StreamMan"...
method_declaration (+61 nodes collapsed)
comment "// GetStreamIngestManager implements the eval.StreamManagerF"...
method_declaration (+61 nodes collapsed)
comment "// DummyEvalPlanner implements the eval.Planner interface by"...
comment "// errors."
type_declaration
type "type"
type_spec
type_identifier "DummyEvalPlanner"
struct_type
struct "struct"
field_declaration_list
{ "{"
field_declaration
field_identifier "Monitor"
pointer_type
* "*"
qualified_type
package_identifier "mon"
. "."
type_identifier "BytesMonitor"
} "}"
comment "// ResolveOIDFromString is part of the Planner interface."
method_declaration (+75 nodes collapsed)
comment "// ResolveOIDFromOID is part of the Planner interface."
method_declaration (+75 nodes collapsed)
comment "// GenerateTestObjects is part of the Planner interface."
method_declaration (+53 nodes collapsed)
comment "// UnsafeUpsertDescriptor is part of the Planner interface."
method_declaration (+53 nodes collapsed)
comment "// UnsafeDeleteDescriptor is part of the Planner interface."
method_declaration (+46 nodes collapsed)
comment "// ForceDeleteTableData is part of the Planner interface."
method_declaration (+41 nodes collapsed)
comment "// UnsafeUpsertNamespaceEntry is part of the Planner interfa"...
method_declaration (+56 nodes collapsed)
comment "// UnsafeDeleteNamespaceEntry is part of the Planner interfa"...
method_declaration (+56 nodes collapsed)
comment "// UpsertDroppedRelationGCTTL is part of the Planner interfa"...
method_declaration (+49 nodes collapsed)
comment "// UnsafeDeleteComment is part of the Planner interface."
method_declaration (+41 nodes collapsed)
comment "// ResetLeaseTimestamp is part of the Planner interface."
method_declaration (+39 nodes collapsed)
comment "// UserHasAdminRole is part of the Planner interface."
method_declaration (+54 nodes collapsed)
comment "// MemberOfWithAdminOption is part of the Planner interface."
method_declaration (+62 nodes collapsed)
comment "// ExternalReadFile is part of the Planner interface."
method_declaration (+52 nodes collapsed)
comment "// ExternalWriteFile is part of the Planner interface."
method_declaration (+47 nodes collapsed)
comment "// DecodeGist is part of the Planner interface."
method_declaration (+57 nodes collapsed)
comment "// SerializeSessionState is part of the Planner interface."
method_declaration (+44 nodes collapsed)
comment "// DeserializeSessionState is part of the Planner interface."
method_declaration (+60 nodes collapsed)
comment "// CreateSessionRevivalToken is part of the Planner interfac"...
method_declaration (+44 nodes collapsed)
comment "// ValidateSessionRevivalToken is part of the Planner interf"...
method_declaration (+52 nodes collapsed)
comment "// RevalidateUniqueConstraintsInCurrentDB is part of the Pla"...
method_declaration (+36 nodes collapsed)
comment "// RevalidateUniqueConstraintsInTable is part of the Planner"...
method_declaration (+41 nodes collapsed)
comment "// RevalidateUniqueConstraint is part of the Planner interfa"...
method_declaration (+45 nodes collapsed)
comment "// IsConstraintActive is part of the EvalPlanner interface."
method_declaration (+54 nodes collapsed)
comment "// ValidateTTLScheduledJobsInCurrentDB is part of the Planne"...
method_declaration (+36 nodes collapsed)
comment "// RepairTTLScheduledJobForTable is part of the Planner inte"...
method_declaration (+40 nodes collapsed)
comment "// TxnMon is part of the eval.Planner interface."
method_declaration (+30 nodes collapsed)
comment "// ExecMon is part of the eval.Planner interface."
method_declaration (+31 nodes collapsed)
comment "// ExecutorConfig is part of the Planner interface."
method_declaration (+25 nodes collapsed)
comment "// Optimizer is part of the cat.Catalog interface."
method_declaration (+25 nodes collapsed)
comment "// GenUniqueCursorName is part of the eval.Planner interface"...
method_declaration (+27 nodes collapsed)
comment "// PLpgSQLCloseCursor is part of the eval.Planner interface."
method_declaration (+36 nodes collapsed)
comment "// PLpgSQLFetchCursor is part of the Planner interface."
method_declaration (+56 nodes collapsed)
method_declaration (+68 nodes collapsed)
method_declaration (+44 nodes collapsed)
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "eval"
. "."
type_identifier "Planner"
= "="
expression_list
unary_expression
& "&"
composite_literal
type_identifier "DummyEvalPlanner"
literal_value
{ "{"
} "}"
var_declaration (+23 nodes collapsed)
comment "// CurrentDatabaseRegionConfig is part of the eval.RegionOpe"...
method_declaration (+50 nodes collapsed)
method_declaration (+72 nodes collapsed)
comment "// ResetMultiRegionZoneConfigsForTable is part of the eval.R"...
comment "// interface."
method_declaration (+41 nodes collapsed)
comment "// ResetMultiRegionZoneConfigsForDatabase is part of the eva"...
comment "// interface."
method_declaration (+42 nodes collapsed)
comment "// ValidateAllMultiRegionZoneConfigsInCurrentDatabase is par"...
method_declaration (+38 nodes collapsed)
comment "// SchemaExists is part of the eval.DatabaseCatalog interfac"...
method_declaration (+52 nodes collapsed)
comment "// HasAnyPrivilegeForSpecifier is part of the eval.DatabaseC"...
method_declaration (+77 nodes collapsed)
comment "// ResolveTableName is part of the eval.DatabaseCatalog inte"...
method_declaration (+59 nodes collapsed)
comment "// GetTypeFromValidSQLSyntax is part of the eval.Planner int"...
method_declaration (+56 nodes collapsed)
comment "// EvalSubquery is part of the eval.Planner interface."
method_declaration (+51 nodes collapsed)
comment "// EvalRoutineExpr is part of the eval.Planner interface."
method_declaration (+66 nodes collapsed)
comment "// RoutineExprGenerator is part of the eval.Planner interfac"...
method_declaration (+49 nodes collapsed)
comment "// EvalTxnControlExpr is part of the eval.Planner interface."
method_declaration (+66 nodes collapsed)
comment "// ResolveTypeByOID implements the tree.TypeReferenceResolve"...
method_declaration (+58 nodes collapsed)
comment "// ResolveType implements the tree.TypeReferenceResolver int"...
method_declaration (+61 nodes collapsed)
comment "// QueryRowEx is part of the eval.Planner interface."
method_declaration (+76 nodes collapsed)
comment "// QueryIteratorEx is part of the eval.Planner interface."
method_declaration (+76 nodes collapsed)
comment "// IsActive is part of the Planner interface."
method_declaration (+36 nodes collapsed)
comment "// ResolveFunction implements FunctionReferenceResolver inte"...
method_declaration (+69 nodes collapsed)
comment "// ResolveFunctionByOID implements FunctionReferenceResolver"...
method_declaration (+72 nodes collapsed)
comment "// GetMultiregionConfig is part of the eval.Planner interfac"...
method_declaration (+50 nodes collapsed)
comment "// IsANSIDML is part of the eval.Planner interface."
method_declaration (+23 nodes collapsed)
comment "// EnforceHomeRegion is part of the eval.Planner interface."
method_declaration (+23 nodes collapsed)
comment "// GetRangeDescIterator is part of the eval.Planner interfac"...
method_declaration (+45 nodes collapsed)
comment "// GetRangeDescByID is part of the eval.Planner interface."
method_declaration (+45 nodes collapsed)
comment "// SpanStats is part of the eval.Planner interface."
method_declaration (+47 nodes collapsed)
comment "// GetDetailsForSpanStats is part of the eval.Planner interf"...
method_declaration (+45 nodes collapsed)
comment "// MaybeReallocateAnnotations is part of the eval.Planner in"...
method_declaration (+23 nodes collapsed)
comment "// AutoCommit is part of the eval.Planner interface."
method_declaration (+23 nodes collapsed)
comment "// InsertTemporarySchema is part of the eval.Planner interfa"...
method_declaration (+35 nodes collapsed)
comment "// ClearQueryPlanCache is part of the eval.Planner interface"...
method_declaration
func "func"
parameter_list
( "("
parameter_declaration
identifier "ep"
pointer_type
* "*"
type_identifier "DummyEvalPlanner"
) ")"
field_identifier "ClearQueryPlanCache"
parameter_list
( "("
) ")"
block
{ "{"
} "}"
comment "// ClearTableStatsCache is part of the eval.Planner interfac"...
method_declaration
func "func"
parameter_list
( "("
parameter_declaration
identifier "ep"
pointer_type
* "*"
type_identifier "DummyEvalPlanner"
) ")"
field_identifier "ClearTableStatsCache"
parameter_list
( "("
) ")"
block
{ "{"
} "}"
comment "// ClearStatementHintsCache is part of the eval.Planner inte"...
method_declaration
func "func"
parameter_list
( "("
parameter_declaration
identifier "ep"
pointer_type
* "*"
type_identifier "DummyEvalPlanner"
) ")"
field_identifier "ClearStatementHintsCache"
parameter_list
( "("
) ")"
block
{ "{"
} "}"
comment "// AwaitStatementHintsCache is part of the eval.Planner inte"...
method_declaration (+23 nodes collapsed)
comment "// RetryCounter is part of the eval.Planner interface."
method_declaration (+23 nodes collapsed)
comment "// ProcessVectorIndexFixups is part of the eval.Planner inte"...
method_declaration (+44 nodes collapsed)
comment "// InsertStatementHint is part of the eval.Planner interface"...
method_declaration (+54 nodes collapsed)
comment "// DeleteStatementHint is part of the eval.Planner interface"...
method_declaration (+69 nodes collapsed)
comment "// SetStatementHintEnabled is part of the eval.Planner inter"...
method_declaration
func "func"
parameter_list
( "("
parameter_declaration
identifier "ep"
pointer_type
* "*"
type_identifier "DummyEvalPlanner"
) ")"
field_identifier "SetStatementHintEnabled"
parameter_list
( "("
parameter_declaration
identifier "ctx"
qualified_type
package_identifier "context"
. "."
type_identifier "Context"
, ","
parameter_declaration
identifier "rowID"
type_identifier "int64"
, ","
parameter_declaration
identifier "statementFingerprint"
type_identifier "string"
, ","
parameter_declaration
identifier "enabled"
type_identifier "bool"
, ","
) ")"
parameter_list
( "("
parameter_declaration
type_identifier "int64"
, ","
parameter_declaration
type_identifier "error"
) ")"
block
{ "{"
statement_list
return_statement
return "return"
expression_list
int_literal "0"
, ","
nil "nil"
} "}"
comment "// ValidateSessionVariableHint is part of the eval.Planner i"...
method_declaration (+40 nodes collapsed)
comment "// UsingHintInjection is part of the eval.Planner interface."
method_declaration (+23 nodes collapsed)
comment "// GetHintIDs is part of the eval.Planner interface."
method_declaration (+26 nodes collapsed)
comment "// LogEvent is part of the eval.Planner interface."
method_declaration (+36 nodes collapsed)
comment "// DummyPrivilegedAccessor implements the tree.PrivilegedAcc"...
type_declaration
type "type"
type_spec
type_identifier "DummyPrivilegedAccessor"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "eval"
. "."
type_identifier "PrivilegedAccessor"
= "="
expression_list
unary_expression
& "&"
composite_literal
type_identifier "DummyPrivilegedAccessor"
literal_value
{ "{"
} "}"
var_declaration (+23 nodes collapsed)
comment "// LookupNamespaceID is part of the tree.PrivilegedAccessor "...
method_declaration (+67 nodes collapsed)
comment "// LookupZoneConfigByNamespaceID is part of the tree.Privile"...
method_declaration (+61 nodes collapsed)
comment "// IsSystemTable is part of the tree.PrivilegedAccessor inte"...
method_declaration (+50 nodes collapsed)
comment "// DummySessionAccessor implements the eval.SessionAccessor "...
type_declaration
type "type"
type_spec
type_identifier "DummySessionAccessor"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "eval"
. "."
type_identifier "SessionAccessor"
= "="
expression_list
unary_expression
& "&"
composite_literal
type_identifier "DummySessionAccessor"
literal_value
{ "{"
} "}"
var_declaration (+23 nodes collapsed)
comment "// GetSessionVar is part of the eval.SessionAccessor interfa"...
method_declaration (+62 nodes collapsed)
comment "// SetSessionVar is part of the eval.SessionAccessor interfa"...
method_declaration (+48 nodes collapsed)
comment "// HasGlobalPrivilegeOrRoleOption is part of the eval.Sessio"...
method_declaration (+46 nodes collapsed)
comment "// CheckPrivilege is part of the eval.SessionAccessor interf"...
method_declaration (+52 nodes collapsed)
comment "// HasViewActivityOrViewActivityRedactedRole is part of the "...
method_declaration (+51 nodes collapsed)
comment "// HasViewAccessToJob implements SessionAccessor."
method_declaration (+38 nodes collapsed)
method_declaration (+39 nodes collapsed)
comment "// DummyClientNoticeSender implements the eval.ClientNoticeS"...
type_declaration
type "type"
type_spec
type_identifier "DummyClientNoticeSender"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "eval"
. "."
type_identifier "ClientNoticeSender"
= "="
expression_list
unary_expression
& "&"
composite_literal
type_identifier "DummyClientNoticeSender"
literal_value
{ "{"
} "}"
comment "// BufferClientNotice is part of the eval.ClientNoticeSender"...
method_declaration (+28 nodes collapsed)
comment "// SendClientNotice is part of the eval.ClientNoticeSender i"...
method_declaration (+37 nodes collapsed)
comment "// DummyTenantOperator implements the tree.TenantOperator in"...
type_declaration
type "type"
type_spec
type_identifier "DummyTenantOperator"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
var_declaration
var "var"
var_spec
identifier "_"
qualified_type
package_identifier "eval"
. "."
type_identifier "TenantOperator"
= "="
expression_list
unary_expression
& "&"
composite_literal
type_identifier "DummyTenantOperator"
literal_value
{ "{"
} "}"
var_declaration (+23 nodes collapsed)
comment "// CreateTenant is part of the tree.TenantOperator interface"...
method_declaration (+60 nodes collapsed)
comment "// LookupTenantID is part of the tree.TenantOperator interfa"...
method_declaration (+64 nodes collapsed)
comment "// DropTenantByID is part of the tree.TenantOperator interfa"...
method_declaration (+48 nodes collapsed)
comment "// UpdateTenantResourceLimits is part of the tree.TenantOper"...
method_declaration (+54 nodes collapsed)
comment "// DummyPreparedStatementState implements the tree.PreparedS"...
comment "// interface."
type_declaration
type "type"
type_spec
type_identifier "DummyPreparedStatementState"
struct_type
struct "struct"
field_declaration_list
{ "{"
} "}"
var_declaration (+21 nodes collapsed)
comment "// HasActivePortals is part of the tree.PreparedStatementSta"...
method_declaration (+23 nodes collapsed)
comment "// MigratablePreparedStatements is part of the tree.Prepared"...
method_declaration (+39 nodes collapsed)
comment "// HasPortal is part of the tree.PreparedStatementState inte"...
method_declaration (+26 nodes collapsed)