Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Option 2

TODO

Option 3

TODO

Source Data Types Mapping

Snowflake Data TypesCDAP Schema Data TypeComment
NUMBER
decimalDefault precision and scale are (38,0).
DECIMALdecimalSynonymous with NUMBER.
NUMERICdecimalSynonymous with NUMBER.
INT, INTEGER, BIGINT, SMALLINTdecimalSynonymous with NUMBER, except that precision and scale cannot be specified (i.e. always defaults to NUMBER(38, 0)).
FLOAT, FLOAT4, FLOAT8 doubleSnowflake uses double-precision (64 bit) IEEE 754 floating point numbers.
DOUBLEdoubleSynonymous with FLOAT.
DOUBLE PRECISIONdoubleSynonymous with FLOAT.
REALdoubleSynonymous with FLOAT.
VARCHARstringDefault (and maximum) is 16,777,216 bytes.
CHAR, CHARACTERstringSynonymous with VARCHAR except default length is VARCHAR(1).
STRINGstringSynonymous with VARCHAR.
TEXTstringSynonymous with VARCHAR.
BINARYbytes
VARBINARYbytesSynonymous with BINARY.
BOOLEANboolean
DATEdate
DATETIMEtimestampAlias for TIMESTAMP_NTZ
TIMEtime
TIMESTAMPtimestamp/stringAlias for one of the TIMESTAMP variations (TIMESTAMP_NTZ by default).
TIMESTAMP_LTZtimestampTIMESTAMP with local time zone; time zone, if provided, is not stored.
TIMESTAMP_NTZtimestampTIMESTAMP with no time zone; time zone, if provided, is not stored.
TIMESTAMP_TZstringTIMESTAMP with time zone.
VARIANTstringA tagged universal type, which can store values of any other type, including OBJECT and ARRAY, up to a maximum size of 16 MB compressed.
OBJECTrecord
ARRAYarray

...

SectionUser Configuration LabelLabel DescriptionOptionsDefaultVariableUser Widget
GeneralLabelLabel for UI.


textbox

Reference NameUniquely identified name for lineage.

referenceNametextbox

Account NameFull name of Snowflake account.




Database

Database name to connect to connect to.






Table Name

Name of a database table to write to.





CredentialsUsernameUser identity for connecting to the specified database.

usernametextbox

PasswordPassword to use to connect to the specified database.

passwordpassword
Key Pair AuthenticationKey Pair Authentication EnabledIf true, plugin will perform Key Pair authentication.
  • True
  • False
FalsekeyPairEnabledtoggle

Key File PathPath to the private key file.

pathtextbox

UserSnowflake login name.

usertextbox
OAuth2OAuth2 EnabledIf true, plugin will perform OAuth2 authentication.
  • True
  • False
Falseoauth2Enabledtoggle

Auth URLEndpoint for the authorization server used to retrieve the authorization code.

authUrltextbox

Token URLEndpoint for the resource server, which exchanges the authorization code for an access token.

tokenUrltextbox

Client IDClient identifier obtained during the Application registration process.

clientIdtextbox

Client SecretClient secret obtained during the Application registration process.

clientSecretpassword

ScopesScope of the access request, which might have multiple space-separated values.

scopestextbox

Refresh TokenToken used to receive accessToken, which is end product of OAuth2.

refreshTokentextbox
AdvancedConnection ArgumentsA list of arbitrary string tag/value pairs as connection arguments. See: https://docs.snowflake.net/manuals/user-guide/jdbc-configure.html#jdbc-driver-connection-string

connectionArgumentskeyvalue

Option 2

TODO

...

TODO

Sink Data Types Mapping

CDAP Schema Data TypeSnowflake Data TypesComment
booleanBOOLEAN
bytesBINARY
dateDATE
doubleFLOATSnowflake uses double-precision (64 bit) IEEE 754 floating point numbers.
decimalNUMBER(s, p)
floatFLOAT
intNUMBER(s, p)

Where p >= 10.


It's safe to write primitives as values of decimal logical type in the case of valid precision.

longNUMBER(s, p)

Where p >= 19.


It's safe to write primitives as values of decimal logical type in the case of valid precision.

stringVARCHAR
timeTIME
timestampTIMESTAMP_NTZ
arrayARRAY
recordOBJECT
enumVARCHAR
mapOBJECT
unionVARIANT

...