_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c20600
train
// Get a list of Column names to position
{ "resource": "" }
c20601
train
// SqlFromPb Create a sql statement from pb
{ "resource": "" }
c20602
train
// EqualWith compare two with helpers for equality.
{ "resource": "" }
c20603
train
// NewExecutor creates a new Job Executor.
{ "resource": "" }
c20604
train
// WalkPlan Main Entry point to take a Plan, and convert into Execution DAG
{ "resource": "" }
c20605
train
// DML // WalkSelect create dag of plan Select.
{ "resource": "" }
c20606
train
// Other Statements // WalkCommand walk Commands such as SET.
{ "resource": "" }
c20607
train
// DDL Operations // WalkCreate walks the Create plan.
{ "resource": "" }
c20608
train
// WalkDrop walks the Drop plan.
{ "resource": "" }
c20609
train
// WalkAlter walks the Alter plan.
{ "resource": "" }
c20610
train
// WalkChildren walk dag of plan tasks creating execution tasks
{ "resource": "" }
c20611
train
// Setup this dag of tasks
{ "resource": "" }
c20612
train
// The drain is the last out channel, on last task
{ "resource": "" }
c20613
train
// UrlWithQueryEval pass reg-expressions to match qs args. // Must match one regexp or else the qs param is dropped.
{ "resource": "" }
c20614
train
// SchemaDBStoreProvider create source for schemadb
{ "resource": "" }
c20615
train
// NewSchemaDb create new db for storing schema.
{ "resource": "" }
c20616
train
// Table get schema Table
{ "resource": "" }
c20617
train
// SetContext set the plan context
{ "resource": "" }
c20618
train
// Table Implement Dialect Specific Writers // ie, mysql, postgres, cassandra all have different dialects // so the Create statements are quite different // Table output a CREATE TABLE statement using mysql dialect.
{ "resource": "" }
c20619
train
// NewPlanner creates a new default planner with context.
{ "resource": "" }
c20620
train
// WalkCommand walks the command statement
{ "resource": "" }
c20621
train
// WalkDrop walks the draop statement
{ "resource": "" }
c20622
train
// WalkCreate walk a Create Plan to create the dag of tasks for Create.
{ "resource": "" }
c20623
train
// WalkAlter walk a ALTER Plan to create the dag of tasks forAlter.
{ "resource": "" }
c20624
train
// convert to human readable string
{ "resource": "" }
c20625
train
// LoadTokenInfo load the token info into global map
{ "resource": "" }
c20626
train
// TokenFromOp get token from operation string
{ "resource": "" }
c20627
train
// String convert to human readable string
{ "resource": "" }
c20628
train
// MatchString which keyword should we look for, either full keyword // OR in case of spaces such as "group by" look for group
{ "resource": "" }
c20629
train
// MultiWord is this a word such as "Group by" with multiple words?
{ "resource": "" }
c20630
train
// OpenConn a schema-source Connection, Global open connection function using // default schema registry.
{ "resource": "" }
c20631
train
// RegisterSourceType makes a datasource type available by the provided @sourceType // If Register is called twice with the same name or if source is nil, it panics. // // Sources are specific schemas of type csv, elasticsearch, etc containing // multiple tables.
{ "resource": "" }
c20632
train
// RegisterSourceAsSchema means you have a datasource, that is going to act // as a named schema. ie, this will not be a nested schema with sub-schemas // and the source will not be re-useable as a source-type.
{ "resource": "" }
c20633
train
// RegisterSchema makes a named schema available by the provided @name // If Register is called twice with the same name or if source is nil, it panics. // // Sources are specific schemas of type csv, elasticsearch, etc containing // multiple tables.
{ "resource": "" }
c20634
train
// NewRegistry create schema registry.
{ "resource": "" }
c20635
train
// SchemaDrop removes a schema
{ "resource": "" }
c20636
train
// SchemaRefresh means reload the schema from underlying store. Possibly // requires introspection.
{ "resource": "" }
c20637
train
// SchemaAddFromConfig means you have a Schema-Source you want to add
{ "resource": "" }
c20638
train
// Schema Get schema for given name.
{ "resource": "" }
c20639
train
// SchemaAdd Add a new Schema
{ "resource": "" }
c20640
train
// SchemaAddChild Add a new Child Schema
{ "resource": "" }
c20641
train
// GetSource Find a DataSource by SourceType
{ "resource": "" }
c20642
train
// String describe contents of registry.
{ "resource": "" }
c20643
train
// Create a schema from given named source // we will find Source for that name and introspect
{ "resource": "" }
c20644
train
// String representation of FilterStatement
{ "resource": "" }
c20645
train
// Includes Recurse this statement and find all includes
{ "resource": "" }
c20646
train
// String representation of FilterSelect
{ "resource": "" }
c20647
train
// Equal Checks for deep equality
{ "resource": "" }
c20648
train
// Close the qryconn. Since sqlite is a NON-threadsafe db, this is very important // as we actually hold a lock per-table during scans to prevent conflict.
{ "resource": "" }
c20649
train
// Get a single row by key.
{ "resource": "" }
c20650
train
// Delete deletes a single row by key
{ "resource": "" }
c20651
train
// WalkSourceSelect An interface implemented by this connection allowing the planner // to push down as much sql logic down to sqlite.
{ "resource": "" }
c20652
train
// Close cleans up and closes channels
{ "resource": "" }
c20653
train
// CloseFinal after exit, cleanup some more
{ "resource": "" }
c20654
train
// Limit only evaluator
{ "resource": "" }
c20655
train
// NewInfoSchema create a new empty schema with given name.
{ "resource": "" }
c20656
train
// NewSchemaSource create a new empty schema with given name and source.
{ "resource": "" }
c20657
train
// Since Is this schema object been refreshed within time window described by @dur time ago ?
{ "resource": "" }
c20658
train
// Table gets Table definition for given table name
{ "resource": "" }
c20659
train
// OpenConn get a connection from this schema by table name.
{ "resource": "" }
c20660
train
// Schema Find a child Schema for given schema name,
{ "resource": "" }
c20661
train
// SchemaForTable Find a Schema for given Table
{ "resource": "" }
c20662
train
// addChildSchema add a child schema to this one. Schemas can be tree-in-nature // with schema of multiple backend datasources being combined into parent Schema, but each // child has their own unique defined schema.
{ "resource": "" }
c20663
train
// NewTable create a new table for a schema.
{ "resource": "" }
c20664
train
// FieldsAsMessages get list of all fields as interface Message // used in schema as sql "describe table"
{ "resource": "" }
c20665
train
// AddField register a new field
{ "resource": "" }
c20666
train
// AddFieldType describe and register a new column
{ "resource": "" }
c20667
train
// Column get the Underlying data type.
{ "resource": "" }
c20668
train
// SetColumns Explicityly set column names.
{ "resource": "" }
c20669
train
// SetColumnsFromFields Explicityly set column names from fields.
{ "resource": "" }
c20670
train
// Schema global accessor to the mockcsv schema
{ "resource": "" }
c20671
train
// LoadTable MockCsv is used for mocking so has a global data source we can load data into
{ "resource": "" }
c20672
train
// New create csv mock source.
{ "resource": "" }
c20673
train
// Setup accept schema
{ "resource": "" }
c20674
train
// DropTable Drop table schema
{ "resource": "" }
c20675
train
// Open connection to given tablename.
{ "resource": "" }
c20676
train
// CreateTable create a csv table in this source.
{ "resource": "" }
c20677
train
// Setup the filesource with schema info
{ "resource": "" }
c20678
train
// Open a connection to given table, partition of Source interface
{ "resource": "" }
c20679
train
// Table satisfys SourceSchema interface to get table schema for given table
{ "resource": "" }
c20680
train
// Given a Where expression, lets try to create a key which // requires form `idenity = "value"` //
{ "resource": "" }
c20681
train
// SqlVm parsers a sql query into columns, where guards, etc //
{ "resource": "" }
c20682
train
// Execute applies a parse expression to the specified context's // // writeContext in the case of sql query is similar to a recordset for selects, // or for delete, insert, update it is like the storage layer //
{ "resource": "" }
c20683
train
// Execute applies a dml sql select expression to the specified context's // // writeContext in the case of sql query is similar to a recordset for selects, // or for delete, insert, update it is like the storage layer //
{ "resource": "" }
c20684
train
// NewORder create new order by exec task
{ "resource": "" }
c20685
train
// lex value // // SIMPLE_NAME_VALUE | TABLE_NAME_VALUE | REGEX_VALUE
{ "resource": "" }
c20686
train
// FileStoreLoader defines the interface for loading files
{ "resource": "" }
c20687
train
// RegisterFileStore global registry for Registering // implementations of FileStore factories of the provided @storeType
{ "resource": "" }
c20688
train
// IntrospectSchema discover schema from contents of row introspection.
{ "resource": "" }
c20689
train
// ParseSqlSelectResolver parse as SELECT using function resolver.
{ "resource": "" }
c20690
train
// ParseSqlStatements into array of SQL Statements
{ "resource": "" }
c20691
train
// First keyword was INSERT, REPLACE
{ "resource": "" }
c20692
train
// First keyword was UPDATE
{ "resource": "" }
c20693
train
// First keyword was UPSERT
{ "resource": "" }
c20694
train
// First keyword was DELETE
{ "resource": "" }
c20695
train
// First keyword was PREPARE
{ "resource": "" }
c20696
train
// First keyword was DESCRIBE
{ "resource": "" }
c20697
train
// First keyword was SET, USE
{ "resource": "" }
c20698
train
// First keyword was DROP
{ "resource": "" }
c20699
train
// MessageConversion convert values of type schema.Message.
{ "resource": "" }