@dataform/core 3.0.45 → 3.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle.d.ts +325 -59
- package/bundle.js +1 -1
- package/jit.proto +35 -0
- package/package.json +1 -1
package/bundle.d.ts
CHANGED
|
@@ -9736,6 +9736,247 @@ namespace dataform {
|
|
|
9736
9736
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9737
9737
|
}
|
|
9738
9738
|
|
|
9739
|
+
/** JitCompilationTargetType enum. */
|
|
9740
|
+
enum JitCompilationTargetType {
|
|
9741
|
+
JIT_COMPILATION_TARGET_TYPE_UNSPECIFIED = 0,
|
|
9742
|
+
JIT_COMPILATION_TARGET_TYPE_TABLE = 1,
|
|
9743
|
+
JIT_COMPILATION_TARGET_TYPE_OPERATION = 2,
|
|
9744
|
+
JIT_COMPILATION_TARGET_TYPE_INCREMENTAL_TABLE = 3
|
|
9745
|
+
}
|
|
9746
|
+
|
|
9747
|
+
/** Properties of a JitCompilationRequest. */
|
|
9748
|
+
interface IJitCompilationRequest {
|
|
9749
|
+
|
|
9750
|
+
/** JitCompilationRequest target */
|
|
9751
|
+
target?: (dataform.ITarget|null);
|
|
9752
|
+
|
|
9753
|
+
/** JitCompilationRequest dependencies */
|
|
9754
|
+
dependencies?: (dataform.ITarget[]|null);
|
|
9755
|
+
|
|
9756
|
+
/** JitCompilationRequest jitCode */
|
|
9757
|
+
jitCode?: (string|null);
|
|
9758
|
+
|
|
9759
|
+
/** JitCompilationRequest jitData */
|
|
9760
|
+
jitData?: (google.protobuf.IStruct|null);
|
|
9761
|
+
|
|
9762
|
+
/** JitCompilationRequest compilationTargetType */
|
|
9763
|
+
compilationTargetType?: (dataform.JitCompilationTargetType|null);
|
|
9764
|
+
}
|
|
9765
|
+
|
|
9766
|
+
/** Represents a JitCompilationRequest. */
|
|
9767
|
+
class JitCompilationRequest implements IJitCompilationRequest {
|
|
9768
|
+
|
|
9769
|
+
/**
|
|
9770
|
+
* Constructs a new JitCompilationRequest.
|
|
9771
|
+
* @param [properties] Properties to set
|
|
9772
|
+
*/
|
|
9773
|
+
constructor(properties?: dataform.IJitCompilationRequest);
|
|
9774
|
+
|
|
9775
|
+
/** JitCompilationRequest target. */
|
|
9776
|
+
public target?: (dataform.ITarget|null);
|
|
9777
|
+
|
|
9778
|
+
/** JitCompilationRequest dependencies. */
|
|
9779
|
+
public dependencies: dataform.ITarget[];
|
|
9780
|
+
|
|
9781
|
+
/** JitCompilationRequest jitCode. */
|
|
9782
|
+
public jitCode: string;
|
|
9783
|
+
|
|
9784
|
+
/** JitCompilationRequest jitData. */
|
|
9785
|
+
public jitData?: (google.protobuf.IStruct|null);
|
|
9786
|
+
|
|
9787
|
+
/** JitCompilationRequest compilationTargetType. */
|
|
9788
|
+
public compilationTargetType: dataform.JitCompilationTargetType;
|
|
9789
|
+
|
|
9790
|
+
/**
|
|
9791
|
+
* Creates a new JitCompilationRequest instance using the specified properties.
|
|
9792
|
+
* @param [properties] Properties to set
|
|
9793
|
+
* @returns JitCompilationRequest instance
|
|
9794
|
+
*/
|
|
9795
|
+
public static create(properties?: dataform.IJitCompilationRequest): dataform.JitCompilationRequest;
|
|
9796
|
+
|
|
9797
|
+
/**
|
|
9798
|
+
* Encodes the specified JitCompilationRequest message. Does not implicitly {@link dataform.JitCompilationRequest.verify|verify} messages.
|
|
9799
|
+
* @param message JitCompilationRequest message or plain object to encode
|
|
9800
|
+
* @param [writer] Writer to encode to
|
|
9801
|
+
* @returns Writer
|
|
9802
|
+
*/
|
|
9803
|
+
public static encode(message: dataform.IJitCompilationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9804
|
+
|
|
9805
|
+
/**
|
|
9806
|
+
* Encodes the specified JitCompilationRequest message, length delimited. Does not implicitly {@link dataform.JitCompilationRequest.verify|verify} messages.
|
|
9807
|
+
* @param message JitCompilationRequest message or plain object to encode
|
|
9808
|
+
* @param [writer] Writer to encode to
|
|
9809
|
+
* @returns Writer
|
|
9810
|
+
*/
|
|
9811
|
+
public static encodeDelimited(message: dataform.IJitCompilationRequest, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9812
|
+
|
|
9813
|
+
/**
|
|
9814
|
+
* Decodes a JitCompilationRequest message from the specified reader or buffer.
|
|
9815
|
+
* @param reader Reader or buffer to decode from
|
|
9816
|
+
* @param [length] Message length if known beforehand
|
|
9817
|
+
* @returns JitCompilationRequest
|
|
9818
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9819
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9820
|
+
*/
|
|
9821
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): dataform.JitCompilationRequest;
|
|
9822
|
+
|
|
9823
|
+
/**
|
|
9824
|
+
* Decodes a JitCompilationRequest message from the specified reader or buffer, length delimited.
|
|
9825
|
+
* @param reader Reader or buffer to decode from
|
|
9826
|
+
* @returns JitCompilationRequest
|
|
9827
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9828
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9829
|
+
*/
|
|
9830
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): dataform.JitCompilationRequest;
|
|
9831
|
+
|
|
9832
|
+
/**
|
|
9833
|
+
* Verifies a JitCompilationRequest message.
|
|
9834
|
+
* @param message Plain object to verify
|
|
9835
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9836
|
+
*/
|
|
9837
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9838
|
+
|
|
9839
|
+
/**
|
|
9840
|
+
* Creates a JitCompilationRequest message from a plain object. Also converts values to their respective internal types.
|
|
9841
|
+
* @param object Plain object
|
|
9842
|
+
* @returns JitCompilationRequest
|
|
9843
|
+
*/
|
|
9844
|
+
public static fromObject(object: { [k: string]: any }): dataform.JitCompilationRequest;
|
|
9845
|
+
|
|
9846
|
+
/**
|
|
9847
|
+
* Creates a plain object from a JitCompilationRequest message. Also converts values to other types if specified.
|
|
9848
|
+
* @param message JitCompilationRequest
|
|
9849
|
+
* @param [options] Conversion options
|
|
9850
|
+
* @returns Plain object
|
|
9851
|
+
*/
|
|
9852
|
+
public static toObject(message: dataform.JitCompilationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9853
|
+
|
|
9854
|
+
/**
|
|
9855
|
+
* Converts this JitCompilationRequest to JSON.
|
|
9856
|
+
* @returns JSON object
|
|
9857
|
+
*/
|
|
9858
|
+
public toJSON(): { [k: string]: any };
|
|
9859
|
+
|
|
9860
|
+
/**
|
|
9861
|
+
* Gets the default type url for JitCompilationRequest
|
|
9862
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9863
|
+
* @returns The default type url
|
|
9864
|
+
*/
|
|
9865
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9866
|
+
}
|
|
9867
|
+
|
|
9868
|
+
/** Properties of a JitCompilationResponse. */
|
|
9869
|
+
interface IJitCompilationResponse {
|
|
9870
|
+
|
|
9871
|
+
/** JitCompilationResponse table */
|
|
9872
|
+
table?: (dataform.IJitTableResult|null);
|
|
9873
|
+
|
|
9874
|
+
/** JitCompilationResponse operation */
|
|
9875
|
+
operation?: (dataform.IJitOperationResult|null);
|
|
9876
|
+
|
|
9877
|
+
/** JitCompilationResponse incrementalTable */
|
|
9878
|
+
incrementalTable?: (dataform.IJitIncrementalTableResult|null);
|
|
9879
|
+
}
|
|
9880
|
+
|
|
9881
|
+
/** Represents a JitCompilationResponse. */
|
|
9882
|
+
class JitCompilationResponse implements IJitCompilationResponse {
|
|
9883
|
+
|
|
9884
|
+
/**
|
|
9885
|
+
* Constructs a new JitCompilationResponse.
|
|
9886
|
+
* @param [properties] Properties to set
|
|
9887
|
+
*/
|
|
9888
|
+
constructor(properties?: dataform.IJitCompilationResponse);
|
|
9889
|
+
|
|
9890
|
+
/** JitCompilationResponse table. */
|
|
9891
|
+
public table?: (dataform.IJitTableResult|null);
|
|
9892
|
+
|
|
9893
|
+
/** JitCompilationResponse operation. */
|
|
9894
|
+
public operation?: (dataform.IJitOperationResult|null);
|
|
9895
|
+
|
|
9896
|
+
/** JitCompilationResponse incrementalTable. */
|
|
9897
|
+
public incrementalTable?: (dataform.IJitIncrementalTableResult|null);
|
|
9898
|
+
|
|
9899
|
+
/** JitCompilationResponse response. */
|
|
9900
|
+
public response?: ("table"|"operation"|"incrementalTable");
|
|
9901
|
+
|
|
9902
|
+
/**
|
|
9903
|
+
* Creates a new JitCompilationResponse instance using the specified properties.
|
|
9904
|
+
* @param [properties] Properties to set
|
|
9905
|
+
* @returns JitCompilationResponse instance
|
|
9906
|
+
*/
|
|
9907
|
+
public static create(properties?: dataform.IJitCompilationResponse): dataform.JitCompilationResponse;
|
|
9908
|
+
|
|
9909
|
+
/**
|
|
9910
|
+
* Encodes the specified JitCompilationResponse message. Does not implicitly {@link dataform.JitCompilationResponse.verify|verify} messages.
|
|
9911
|
+
* @param message JitCompilationResponse message or plain object to encode
|
|
9912
|
+
* @param [writer] Writer to encode to
|
|
9913
|
+
* @returns Writer
|
|
9914
|
+
*/
|
|
9915
|
+
public static encode(message: dataform.IJitCompilationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9916
|
+
|
|
9917
|
+
/**
|
|
9918
|
+
* Encodes the specified JitCompilationResponse message, length delimited. Does not implicitly {@link dataform.JitCompilationResponse.verify|verify} messages.
|
|
9919
|
+
* @param message JitCompilationResponse message or plain object to encode
|
|
9920
|
+
* @param [writer] Writer to encode to
|
|
9921
|
+
* @returns Writer
|
|
9922
|
+
*/
|
|
9923
|
+
public static encodeDelimited(message: dataform.IJitCompilationResponse, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
9924
|
+
|
|
9925
|
+
/**
|
|
9926
|
+
* Decodes a JitCompilationResponse message from the specified reader or buffer.
|
|
9927
|
+
* @param reader Reader or buffer to decode from
|
|
9928
|
+
* @param [length] Message length if known beforehand
|
|
9929
|
+
* @returns JitCompilationResponse
|
|
9930
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9931
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9932
|
+
*/
|
|
9933
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): dataform.JitCompilationResponse;
|
|
9934
|
+
|
|
9935
|
+
/**
|
|
9936
|
+
* Decodes a JitCompilationResponse message from the specified reader or buffer, length delimited.
|
|
9937
|
+
* @param reader Reader or buffer to decode from
|
|
9938
|
+
* @returns JitCompilationResponse
|
|
9939
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
9940
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
9941
|
+
*/
|
|
9942
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): dataform.JitCompilationResponse;
|
|
9943
|
+
|
|
9944
|
+
/**
|
|
9945
|
+
* Verifies a JitCompilationResponse message.
|
|
9946
|
+
* @param message Plain object to verify
|
|
9947
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
9948
|
+
*/
|
|
9949
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
9950
|
+
|
|
9951
|
+
/**
|
|
9952
|
+
* Creates a JitCompilationResponse message from a plain object. Also converts values to their respective internal types.
|
|
9953
|
+
* @param object Plain object
|
|
9954
|
+
* @returns JitCompilationResponse
|
|
9955
|
+
*/
|
|
9956
|
+
public static fromObject(object: { [k: string]: any }): dataform.JitCompilationResponse;
|
|
9957
|
+
|
|
9958
|
+
/**
|
|
9959
|
+
* Creates a plain object from a JitCompilationResponse message. Also converts values to other types if specified.
|
|
9960
|
+
* @param message JitCompilationResponse
|
|
9961
|
+
* @param [options] Conversion options
|
|
9962
|
+
* @returns Plain object
|
|
9963
|
+
*/
|
|
9964
|
+
public static toObject(message: dataform.JitCompilationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
9965
|
+
|
|
9966
|
+
/**
|
|
9967
|
+
* Converts this JitCompilationResponse to JSON.
|
|
9968
|
+
* @returns JSON object
|
|
9969
|
+
*/
|
|
9970
|
+
public toJSON(): { [k: string]: any };
|
|
9971
|
+
|
|
9972
|
+
/**
|
|
9973
|
+
* Gets the default type url for JitCompilationResponse
|
|
9974
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
9975
|
+
* @returns The default type url
|
|
9976
|
+
*/
|
|
9977
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
9978
|
+
}
|
|
9979
|
+
|
|
9739
9980
|
/** Properties of a JitTableResult. */
|
|
9740
9981
|
interface IJitTableResult {
|
|
9741
9982
|
|
|
@@ -10597,6 +10838,13 @@ interface ITableContext extends IActionContext {
|
|
|
10597
10838
|
when: (cond: boolean, trueCase: string, falseCase?: string) => string;
|
|
10598
10839
|
incremental: () => boolean;
|
|
10599
10840
|
}
|
|
10841
|
+
declare type JitContext<T> = T & {
|
|
10842
|
+
adapter: dataform.DbAdapter;
|
|
10843
|
+
data?: {
|
|
10844
|
+
[k: string]: any;
|
|
10845
|
+
};
|
|
10846
|
+
};
|
|
10847
|
+
declare type JitContextable<Context, T> = string | ((jctx: JitContext<Context>) => Promise<T>);
|
|
10600
10848
|
|
|
10601
10849
|
declare type AContextable<T> = T | ((ctx: AssertionContext) => T);
|
|
10602
10850
|
declare class Assertion extends ActionBuilder<dataform.Assertion> {
|
|
@@ -10688,11 +10936,75 @@ declare class Declaration extends ActionBuilder<dataform.Declaration> {
|
|
|
10688
10936
|
private verifyConfig;
|
|
10689
10937
|
}
|
|
10690
10938
|
|
|
10939
|
+
declare type JitTableResult = string | dataform.IJitTableResult;
|
|
10940
|
+
declare class Table extends ActionBuilder<dataform.Table> {
|
|
10941
|
+
session: Session;
|
|
10942
|
+
dependOnDependencyAssertions: boolean;
|
|
10943
|
+
contextableQuery: Contextable<ITableContext, string>;
|
|
10944
|
+
private contextableWhere;
|
|
10945
|
+
private contextableJitCode;
|
|
10946
|
+
private contextablePreOps;
|
|
10947
|
+
private contextablePostOps;
|
|
10948
|
+
private proto;
|
|
10949
|
+
private uniqueKeyAssertions;
|
|
10950
|
+
private rowConditionsAssertion;
|
|
10951
|
+
private unverifiedConfig;
|
|
10952
|
+
private configPath;
|
|
10953
|
+
constructor(session?: Session, unverifiedConfig?: any, configPath?: string);
|
|
10954
|
+
type(type: TableType): this;
|
|
10955
|
+
query(query: Contextable<ITableContext, string>): this;
|
|
10956
|
+
where(where: Contextable<ITableContext, string>): this;
|
|
10957
|
+
jitCode(jitCode: JitContextable<ITableContext, JitTableResult>): this;
|
|
10958
|
+
preOps(pres: Contextable<ITableContext, string | string[]>): this;
|
|
10959
|
+
postOps(posts: Contextable<ITableContext, string | string[]>): this;
|
|
10960
|
+
disabled(disabled?: boolean): this;
|
|
10961
|
+
bigquery(bigquery: dataform.IBigQueryOptions): this;
|
|
10962
|
+
dependencies(value: Resolvable | Resolvable[]): this;
|
|
10963
|
+
hermetic(hermetic: boolean): void;
|
|
10964
|
+
tags(value: string | string[]): this;
|
|
10965
|
+
description(description: string): this;
|
|
10966
|
+
columns(columns: dataform.ActionConfig.ColumnDescriptor[]): this;
|
|
10967
|
+
database(database: string): this;
|
|
10968
|
+
schema(schema: string): this;
|
|
10969
|
+
assertions(tableAssertionsConfig: dataform.ActionConfig.TableAssertionsConfig): Table;
|
|
10970
|
+
setDependOnDependencyAssertions(dependOnDependencyAssertions: boolean): this;
|
|
10971
|
+
getFileName(): string;
|
|
10972
|
+
getTarget(): dataform.Target;
|
|
10973
|
+
compile(): dataform.Table;
|
|
10974
|
+
private compileJit;
|
|
10975
|
+
private compileAot;
|
|
10976
|
+
private contextifyOps;
|
|
10977
|
+
private verifyConfig;
|
|
10978
|
+
}
|
|
10979
|
+
declare class TableContext implements ITableContext {
|
|
10980
|
+
private table;
|
|
10981
|
+
private isIncremental;
|
|
10982
|
+
constructor(table: Table, isIncremental?: boolean);
|
|
10983
|
+
self(): string;
|
|
10984
|
+
name(): string;
|
|
10985
|
+
ref(ref: Resolvable | string[], ...rest: string[]): string;
|
|
10986
|
+
resolve(ref: Resolvable | string[], ...rest: string[]): string;
|
|
10987
|
+
schema(): string;
|
|
10988
|
+
database(): string;
|
|
10989
|
+
type(type: TableType): string;
|
|
10990
|
+
where(where: Contextable<ITableContext, string>): string;
|
|
10991
|
+
when(cond: boolean, trueCase: string, falseCase?: string): string;
|
|
10992
|
+
incremental(): boolean;
|
|
10993
|
+
preOps(statement: Contextable<ITableContext, string | string[]>): string;
|
|
10994
|
+
postOps(statement: Contextable<ITableContext, string | string[]>): string;
|
|
10995
|
+
disabled(): string;
|
|
10996
|
+
bigquery(bigquery: dataform.IBigQueryOptions): string;
|
|
10997
|
+
dependencies(res: Resolvable): string;
|
|
10998
|
+
apply<T>(value: Contextable<ITableContext, T>): T;
|
|
10999
|
+
tags(tags: string[]): string;
|
|
11000
|
+
}
|
|
11001
|
+
|
|
10691
11002
|
declare class IncrementalTable extends ActionBuilder<dataform.Table> {
|
|
10692
11003
|
session: Session;
|
|
10693
11004
|
dependOnDependencyAssertions: boolean;
|
|
10694
11005
|
contextableQuery: Contextable<ITableContext, string>;
|
|
10695
11006
|
private contextableWhere;
|
|
11007
|
+
private contextableJitCode;
|
|
10696
11008
|
private contextablePreOps;
|
|
10697
11009
|
private contextablePostOps;
|
|
10698
11010
|
private proto;
|
|
@@ -10704,6 +11016,7 @@ declare class IncrementalTable extends ActionBuilder<dataform.Table> {
|
|
|
10704
11016
|
type(type: TableType): this;
|
|
10705
11017
|
query(query: Contextable<ITableContext, string>): this;
|
|
10706
11018
|
where(where: Contextable<ITableContext, string>): this;
|
|
11019
|
+
jitCode(jitCode: JitContextable<ITableContext, JitTableResult>): this;
|
|
10707
11020
|
preOps(pres: Contextable<ITableContext, string | string[]>): this;
|
|
10708
11021
|
postOps(posts: Contextable<ITableContext, string | string[]>): this;
|
|
10709
11022
|
disabled(disabled?: boolean): this;
|
|
@@ -10722,6 +11035,8 @@ declare class IncrementalTable extends ActionBuilder<dataform.Table> {
|
|
|
10722
11035
|
getFileName(): string;
|
|
10723
11036
|
getTarget(): dataform.Target;
|
|
10724
11037
|
compile(): dataform.Table;
|
|
11038
|
+
private compileJit;
|
|
11039
|
+
private compileAot;
|
|
10725
11040
|
private contextifyOps;
|
|
10726
11041
|
private verifyConfig;
|
|
10727
11042
|
private mapOnSchemaChange;
|
|
@@ -10740,13 +11055,16 @@ declare class Notebook extends ActionBuilder<dataform.Notebook> {
|
|
|
10740
11055
|
private verifyConfig;
|
|
10741
11056
|
}
|
|
10742
11057
|
|
|
11058
|
+
declare type JitOperationResult = string | string[] | dataform.IJitOperationResult;
|
|
10743
11059
|
declare class Operation extends ActionBuilder<dataform.Operation> {
|
|
10744
11060
|
session: Session;
|
|
10745
11061
|
dependOnDependencyAssertions: boolean;
|
|
10746
11062
|
private proto;
|
|
10747
11063
|
private contextableQueries;
|
|
11064
|
+
private contextableJitCode;
|
|
10748
11065
|
constructor(session?: Session, unverifiedConfig?: any, configPath?: string);
|
|
10749
11066
|
queries(queries: Contextable<IActionContext, string | string[]>): this;
|
|
11067
|
+
jitCode(jitCode: JitContextable<IActionContext, JitOperationResult>): this;
|
|
10750
11068
|
dependencies(value: Resolvable | Resolvable[]): this;
|
|
10751
11069
|
hermetic(hermetic: boolean): void;
|
|
10752
11070
|
disabled(disabled?: boolean): this;
|
|
@@ -10761,6 +11079,7 @@ declare class Operation extends ActionBuilder<dataform.Operation> {
|
|
|
10761
11079
|
getTarget(): dataform.Target;
|
|
10762
11080
|
getHasOutput(): boolean;
|
|
10763
11081
|
compile(): dataform.Operation;
|
|
11082
|
+
private compileJit;
|
|
10764
11083
|
private verifyConfig;
|
|
10765
11084
|
}
|
|
10766
11085
|
declare class OperationContext implements IActionContext {
|
|
@@ -10779,69 +11098,13 @@ declare class OperationContext implements IActionContext {
|
|
|
10779
11098
|
apply<T>(value: Contextable<IActionContext, T>): T;
|
|
10780
11099
|
}
|
|
10781
11100
|
|
|
10782
|
-
declare
|
|
10783
|
-
session: Session;
|
|
10784
|
-
dependOnDependencyAssertions: boolean;
|
|
10785
|
-
contextableQuery: Contextable<ITableContext, string>;
|
|
10786
|
-
private contextableWhere;
|
|
10787
|
-
private contextablePreOps;
|
|
10788
|
-
private contextablePostOps;
|
|
10789
|
-
private proto;
|
|
10790
|
-
private uniqueKeyAssertions;
|
|
10791
|
-
private rowConditionsAssertion;
|
|
10792
|
-
private unverifiedConfig;
|
|
10793
|
-
private configPath;
|
|
10794
|
-
constructor(session?: Session, unverifiedConfig?: any, configPath?: string);
|
|
10795
|
-
type(type: TableType): this;
|
|
10796
|
-
query(query: Contextable<ITableContext, string>): this;
|
|
10797
|
-
where(where: Contextable<ITableContext, string>): this;
|
|
10798
|
-
preOps(pres: Contextable<ITableContext, string | string[]>): this;
|
|
10799
|
-
postOps(posts: Contextable<ITableContext, string | string[]>): this;
|
|
10800
|
-
disabled(disabled?: boolean): this;
|
|
10801
|
-
bigquery(bigquery: dataform.IBigQueryOptions): this;
|
|
10802
|
-
dependencies(value: Resolvable | Resolvable[]): this;
|
|
10803
|
-
hermetic(hermetic: boolean): void;
|
|
10804
|
-
tags(value: string | string[]): this;
|
|
10805
|
-
description(description: string): this;
|
|
10806
|
-
columns(columns: dataform.ActionConfig.ColumnDescriptor[]): this;
|
|
10807
|
-
database(database: string): this;
|
|
10808
|
-
schema(schema: string): this;
|
|
10809
|
-
assertions(tableAssertionsConfig: dataform.ActionConfig.TableAssertionsConfig): Table;
|
|
10810
|
-
setDependOnDependencyAssertions(dependOnDependencyAssertions: boolean): this;
|
|
10811
|
-
getFileName(): string;
|
|
10812
|
-
getTarget(): dataform.Target;
|
|
10813
|
-
compile(): dataform.Table;
|
|
10814
|
-
private contextifyOps;
|
|
10815
|
-
private verifyConfig;
|
|
10816
|
-
}
|
|
10817
|
-
declare class TableContext implements ITableContext {
|
|
10818
|
-
private table;
|
|
10819
|
-
private isIncremental;
|
|
10820
|
-
constructor(table: Table, isIncremental?: boolean);
|
|
10821
|
-
self(): string;
|
|
10822
|
-
name(): string;
|
|
10823
|
-
ref(ref: Resolvable | string[], ...rest: string[]): string;
|
|
10824
|
-
resolve(ref: Resolvable | string[], ...rest: string[]): string;
|
|
10825
|
-
schema(): string;
|
|
10826
|
-
database(): string;
|
|
10827
|
-
type(type: TableType): string;
|
|
10828
|
-
where(where: Contextable<ITableContext, string>): string;
|
|
10829
|
-
when(cond: boolean, trueCase: string, falseCase?: string): string;
|
|
10830
|
-
incremental(): boolean;
|
|
10831
|
-
preOps(statement: Contextable<ITableContext, string | string[]>): string;
|
|
10832
|
-
postOps(statement: Contextable<ITableContext, string | string[]>): string;
|
|
10833
|
-
disabled(): string;
|
|
10834
|
-
bigquery(bigquery: dataform.IBigQueryOptions): string;
|
|
10835
|
-
dependencies(res: Resolvable): string;
|
|
10836
|
-
apply<T>(value: Contextable<ITableContext, T>): T;
|
|
10837
|
-
tags(tags: string[]): string;
|
|
10838
|
-
}
|
|
10839
|
-
|
|
11101
|
+
declare type JitViewResult = string | dataform.IJitTableResult;
|
|
10840
11102
|
declare class View extends ActionBuilder<dataform.Table> {
|
|
10841
11103
|
session: Session;
|
|
10842
11104
|
dependOnDependencyAssertions: boolean;
|
|
10843
11105
|
contextableQuery: Contextable<ITableContext, string>;
|
|
10844
11106
|
private contextableWhere;
|
|
11107
|
+
private contextableJitCode;
|
|
10845
11108
|
private contextablePreOps;
|
|
10846
11109
|
private contextablePostOps;
|
|
10847
11110
|
private proto;
|
|
@@ -10867,9 +11130,12 @@ declare class View extends ActionBuilder<dataform.Table> {
|
|
|
10867
11130
|
schema(schema: string): this;
|
|
10868
11131
|
assertions(tableAssertionsConfig: dataform.ActionConfig.TableAssertionsConfig): View;
|
|
10869
11132
|
setDependOnDependencyAssertions(dependOnDependencyAssertions: boolean): this;
|
|
11133
|
+
jitCode(jitCode: JitContextable<ITableContext, JitViewResult>): this;
|
|
10870
11134
|
getFileName(): string;
|
|
10871
11135
|
getTarget(): dataform.Target;
|
|
10872
11136
|
compile(): dataform.Table;
|
|
11137
|
+
private compileJit;
|
|
11138
|
+
private compileAot;
|
|
10873
11139
|
private contextifyOps;
|
|
10874
11140
|
private verifyConfig;
|
|
10875
11141
|
}
|
|
@@ -11065,7 +11331,7 @@ interface IDataformExtension {
|
|
|
11065
11331
|
|
|
11066
11332
|
declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
|
|
11067
11333
|
|
|
11068
|
-
declare const version = "3.0.
|
|
11334
|
+
declare const version = "3.0.46";
|
|
11069
11335
|
|
|
11070
11336
|
declare const session: Session;
|
|
11071
11337
|
declare const supportedFeatures: dataform.SupportedFeatures[];
|