cogdmod_gp.ini 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. ;***********************************************************************
  2. ;Licensed Materials - Property of IBM
  3. ;
  4. ;BI and PM: UDA
  5. ;
  6. ;(C) Copyright IBM Corp. 2005, 2020
  7. ;
  8. ;U.S. Government Users Restricted Rights - Use, duplication, or disclosure
  9. ;by GSA ADP Schedule Contract with IBM Corp.
  10. ;
  11. ;Unless specifically authorized by IBM, you may not modify any part of this
  12. ;file. Where modification is authorized, you must reproduce any copyright
  13. ;notices contained in this file and specifically identify which
  14. ;modifications have been made by your organization. YOU ARE SOLELY
  15. ;RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF ANY MODIFICATIONS TO
  16. ;THIS FILE AND ASSUME ALL RISKS ASSOCIATED WITH THE USE AND DISTRIBUTION
  17. ;OF THE MODIFIED FILE. IBM will not provide support relating to
  18. ;unauthorized changes you make to this file.
  19. ;***********************************************************************
  20. ; $Header: $
  21. ;
  22. ; Module:
  23. ; cogdmod_gp.ini
  24. ;
  25. ; Purpose:
  26. ; This module contains the Greenplum gateway information.
  27. ;
  28. ; Notes:
  29. ; Do NOT modify this file. Doing so could result in unknown behavior
  30. ; by the Greenplum gateway, possibly resulting in application aborts.
  31. ;
  32. ; ************************************************************************
  33. [DATABASE:GREENPLUM]
  34. Disable_Subquery_With_Parameters=T
  35. Keyword Alias=" as \"%s\" "
  36. SQL_API_SQLDESCRIBEPARAM="FALSE"
  37. ;No SQLCancel() is called
  38. SQL_API_SQLCANCEL="FALSE"
  39. ;Cancel request and drop connection
  40. ;DROP_CONNECTION_ON_CANCEL="T"
  41. [Exceptions Commands DATABASE:GREENPLUM]
  42. Select="select "
  43. Insert="insert "
  44. Update="update "
  45. Delete="delete "
  46. Call="call "
  47. Select_Star="T"
  48. Max_Stmt_Len=""
  49. [Exceptions Clauses DATABASE:GREENPLUM]
  50. From="from"
  51. Where="where"
  52. Group_By="Group By"
  53. Having="having"
  54. Window=
  55. With=
  56. With_Recursive=
  57. [Exceptions Tables DATABASE:GREENPLUM]
  58. Derived=T
  59. Joined=F
  60. Simple_And_Joined=T
  61. Tbl_Ref_Limit=""
  62. SubSelect_Limit=""
  63. Table_Constructor=T
  64. UniqueName_Prefix="coguda"
  65. [Exceptions Joins DATABASE:GREENPLUM]
  66. Inner=T
  67. Left_Outer=T
  68. Right_Outer=T
  69. Full_Outer=T
  70. Cross=T
  71. On_Condition_Or_Predicate=T
  72. Nested_Outer=T
  73. Inner_Tbl_Restrict=F
  74. Optnl_Tbl_Restrict=F
  75. Non_Equi_Joins=T
  76. One_Outer=F
  77. Natural=T
  78. Left_Nested=T
  79. Right_Nested=T
  80. Two_Sided_Join_Restrict=F
  81. Optnl_Tbl_Join_Restrict=F
  82. Optnl_Tbl_Join_Filter=T
  83. Optnl_Tbl_Filter=T
  84. Prsrv_Tbl_Join_Filter=T
  85. Prsrv_Tbl_Filter=T
  86. On_Condition_Set_Functions=T
  87. On_Condition_Subqueries=T
  88. Full_Non_Equi_Join=F
  89. On_Condition_In_Predicate=T
  90. On_Condition_Not_Predicate=T
  91. On_Condition_Like_Predicate=T
  92. On_Condition_Between_Predicate=T
  93. On_Condition_IsNull_Predicate=T
  94. Non_Join_Expr=T
  95. Non_Join_Non_Equi_Expr=T
  96. Only_Eql_With_And=F
  97. On_Condition_Functions=T
  98. Two_Sided_Join_Restrict_Filter=F
  99. Nested_Inner=T
  100. Product_Join=T
  101. Outer_Non_Equi_Join=T
  102. On_Condition_No_Expr=T
  103. Outer_Syntax=T
  104. Left_Pre=
  105. ;Left_Eql=" LEFT OUTER JOIN "
  106. Left_Post=
  107. Right_Pre=
  108. ;Right_Eql=" RIGHT OUTER JOIN "
  109. Right_Post=
  110. ;Full_Syntax=" FULL OUTER JOIN "
  111. Full_Pre=
  112. Full_Post=
  113. ;Inner_Syntax=" INNER JOIN "
  114. Inner_Col_Pre=
  115. Inner_Col_Post=
  116. ;Cross_Syntax=" CROSS JOIN "
  117. ;Union_Syntax=" UNION "
  118. ;Natural_Syntax=" NATURAL JOIN "
  119. [Exceptions Predicates DATABASE:GREENPLUM]
  120. Between="between"
  121. In="in"
  122. Like="like"
  123. Is_Null="is null"
  124. Any="any"
  125. All=
  126. Exists="exists"
  127. NotLike="not like"
  128. [Exceptions Aggregates DATABASE:GREENPLUM]
  129. Max="max"
  130. Min="min"
  131. Sum="sum"
  132. Avg="avg"
  133. Count="count"
  134. Count_Star="count(*)"
  135. Stddev="stddev"
  136. Stddev_Pop="stddev_pop"
  137. Stddev_Samp="stddev_samp"
  138. Variance="variance"
  139. Var_Pop="var_pop"
  140. Var_Samp="var_samp"
  141. Grouping=
  142. Rank=
  143. Dense_Rank=
  144. Percent_Rank=
  145. Cume_Dist=
  146. Percentile_Cont=
  147. Percentile_Disc=
  148. First_Value=
  149. Last_Value=
  150. Percentile=F
  151. [Exceptions OLAP Functions DATABASE:GREENPLUM]
  152. Olap_Min="min"
  153. Olap_Max="max"
  154. Olap_Sum="sum"
  155. Olap_Avg="avg"
  156. Olap_Count="count"
  157. Olap_Count_Star="count(*)"
  158. Olap_Stddev="stddev"
  159. Olap_Stddev_Pop="stddev_pop"
  160. Olap_Stddev_Samp="stddev_samp"
  161. Olap_Variance="variance"
  162. Olap_Var_Pop="var_pop"
  163. Olap_Var_Samp="var_samp"
  164. Olap_Rank="rank"
  165. Olap_Dense_Rank="dense_rank"
  166. Olap_Percent_Rank=
  167. Olap_Cume_Dist=
  168. Olap_Percentile_Cont=
  169. Olap_Percentile_Disc=
  170. ; Vendor imposing ordering in window
  171. Olap_First_Value=
  172. ; Vendor imposing ordering in window
  173. Olap_Last_Value=
  174. Olap_Row_Number="row_number"
  175. Olap_Ratio_To_Report=
  176. Olap_Ntile="ntile"
  177. ; Olap_Count_Default="ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
  178. ; Olap_Sum_Default="ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
  179. Olap_Last_Value_Default="ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING"
  180. [Exceptions Set Operators DATABASE:GREENPLUM]
  181. Union="union"
  182. Union_All=T
  183. Intersect="intersect"
  184. Intersect_All=T
  185. Except=" except "
  186. Except_All=T
  187. Distinct="distinct"
  188. Order_By="order by"
  189. [Exceptions Operators DATABASE:GREENPLUM]
  190. Add="+"
  191. Sub="-"
  192. Mul="*"
  193. Div="/"
  194. Eql="="
  195. Neq="<>"
  196. Grt=">"
  197. Geq=">="
  198. Les="<"
  199. Leq="<="
  200. Neg="-"
  201. And="and"
  202. Or="or"
  203. Not="not"
  204. Assign="="
  205. [Exceptions Value Expressions DATABASE:GREENPLUM]
  206. Case_Simple=T
  207. Case_Searched=T
  208. Coalesce=T
  209. Nullif=T
  210. Grouping_Sets=T
  211. Rollup=T
  212. Cube=T
  213. Position=T
  214. Char_Length=F
  215. Octet_Length=F
  216. Substring=T
  217. Upper=T
  218. Lower=T
  219. StrCat=T
  220. Cast=C
  221. Abs=T
  222. Floor=T
  223. Ceiling=C
  224. ln=T
  225. Exp=T
  226. Mod=F
  227. Sqrt=T
  228. Power=T
  229. Current_Date=T
  230. ;Unable to get timezone type via ODBC so disabled
  231. Current_Time=F
  232. Current_TimeStamp=F
  233. LocalTime=F
  234. LocalTimestamp=F
  235. ; Aspects of Extract can be mapped via entries in the built in section
  236. Extract=C
  237. Extract_Year=coguda#extract_year
  238. Extract_Month=coguda#extract_month
  239. Extract_Day=coguda#extract_day
  240. Extract_Hours=coguda#extract_hour
  241. Extract_Minutes=coguda#extract_minute
  242. Trim=T
  243. Row_Value_Constructors=T
  244. Olap_Window_Order_By=T
  245. [Exceptions General DATABASE:GREENPLUM]
  246. Aggregate_In_Expr=T
  247. Aggregate_Value_Expr=T
  248. Correlated_Subqueries=T
  249. Cross_Product=T
  250. Distinct_Aggregates=T
  251. Distinct_Aggr_In_Case=T
  252. Group_By_Expr=T
  253. Group_By_Ordinal=T
  254. Group_By_Alias=T
  255. Multiple_Distinct=T
  256. Count_Non_Distinct=T
  257. Count_Value_Expr=T
  258. Count_Literal=T
  259. Is_Null_Value_Expr=T
  260. Is_Null_Value_Parm=T
  261. Like_Value_Expr=T
  262. Subquery_In_Having=T
  263. Subquery_In_Group_By=T
  264. Subquery_In_Case=F
  265. Count_Blob=T
  266. Expression_In_In=T
  267. Null_Order=F
  268. Olap_Null_Order=F
  269. Olap_Distinct=T
  270. Nested_Olap_Functions=F
  271. Empty_String_Is_Null=F
  272. Order_By_In_Derived_Table=T
  273. Interval_As_VarChar=F
  274. Boolean_Comparison=T
  275. Derived_Column_List=T
  276. With_Column_List=F
  277. Aggr_With_Interval=T
  278. Nested_Case=T
  279. Not_In_Subquery=T
  280. Nulls_Sort_Last=T
  281. Order_By_Alias=T
  282. Order_By_Name=T
  283. Substring_On_Expr=T
  284. Subqueries=T
  285. Subquery_Column_Alias=T
  286. Parameter_In_Select_List=T
  287. Remove_Parameter_Cast=T
  288. Subquery_With_Parameters=T
  289. Like_With_Parameters=T
  290. Like_With_Escape=T
  291. Comments=T
  292. Integer_Division_Truncation=T
  293. [Exceptions Literals DATABASE:GREENPLUM]
  294. Date_Literal=T
  295. Timestamp_Literal=T
  296. Time_Literal=T
  297. Interval_Literal=F
  298. IntervalYM_Literal=F
  299. TimeTZ_Literal=F
  300. TimestampTZ_Literal=F
  301. NChar_Literal=T
  302. [Exceptions Misc DATABASE:GREENPLUM]
  303. [Exceptions Delimiters DATABASE:GREENPLUM]
  304. ; The RDBMS is accepting double quotes for quoted identifiers. For non-ODBC based connections
  305. ; enable the appropriate delimeter entries with respect to if catalog, schemas, procedures and
  306. ; table functions would be supported.
  307. ;Catalog_Delimiter="\""
  308. ;Schema_Delimiter="\""
  309. ;Table_Delimiter="\""
  310. ;Column_Delimiter="\""
  311. ;Procedure_Delimiter="\""
  312. ;Wholename_Delimiter="\""
  313. ;Table_Function_PreStr="TABLE( "
  314. ;Table_Function_PostStr=" )"
  315. ; ANSI style dashdash is also supported
  316. Comment_Begin="/* "
  317. Comment_End=" */ "
  318. [Exceptions Separators DATABASE:GREENPLUM]
  319. Catalog_Separator="."
  320. Schema_Separator="."
  321. Table_Separator="."
  322. [Exceptions Blob Expressions DATABASE:GREENPLUM]
  323. Blob_In_Substring=T
  324. Blob_In_Trim=F
  325. Blob_In_StrCat=F
  326. Blob_In_IsNull=F
  327. Blob_In_Substring_Return_Blob=F
  328. ;b stands for boolean.
  329. ;c stands for character.
  330. ;x stands for text.
  331. ;d stands for date.
  332. ;i stands for the interval.
  333. ;n stands for the numeric.
  334. ;s stands for the timestamp.
  335. ;t stands for the time.
  336. ;y stands for time with time zone
  337. ;z stands for timestamp with time zone
  338. [Database Functions DATABASE:GREENPLUM]
  339. n:ceiling(%1n)=CEIL(%1);
  340. [Builtin Functions DATABASE:GREENPLUM]
  341. d:_add_days(%1d,%2n)=cast (%1 + (interval '1 day' * floor(%2)) as date);
  342. d:_add_months(%1d,%2n)=(cast(%1 + (interval '1 month' * floor(%2)) as date));
  343. d:_add_years(%1d,%2n)=cast(%1 + (interval '1 year' * floor(%2)) as date);
  344. d:_first_of_month(%1d)=cast(date_trunc('month', %1) as date);
  345. d:_last_of_month(%1d)=(cast(cast(date_trunc('month',%1) as date) + interval '1 month' - interval '1 day' as date));
  346. s:_add_days(%1s,%2n)=(%1 + (interval '1 day' * floor(%2)));
  347. s:_add_months(%1s,%2n)=(%1 + (interval '1 month' * floor(%2)));
  348. s:_add_years(%1s,%2n)=(%1 + (interval '1 year' * floor(%2)));
  349. s:_first_of_month(%1s)=%1 - ( EXTRACT( DAY FROM %1 ) * INTERVAL '1 DAY' ) + INTERVAL '1 DAY';
  350. s:_last_of_month(%1s)=%1 - ( EXTRACT( DAY FROM %1 ) * INTERVAL '1 DAY' ) + INTERVAL '1 MONTH';
  351. s:_make_timestamp(%1n,%2n,%3n)=cast(TO_TIMESTAMP('%1-%2-%3','YYYY-MM-DD') as timestamp without time zone);
  352. s:_add_hours(%1s,%2n)=%1 + (INTERVAL '1 hour' * FLOOR(%2));
  353. s:_add_minutes(%1s,%2n)=%1 + (INTERVAL '1 minute' * FLOOR(%2));
  354. s:_add_seconds(%1s,%2n)=%1 + (INTERVAL '1 second' * FLOOR(%2));
  355. n:_days_between(%1ds,%2ds)=cast(%1 as date) - cast(%2 as date);
  356. ;n:_months_between(%1ds,%2ds)=;
  357. n:_years_between(%1ds,%2ds)=((extract(year from %1) - extract(year from %2)));
  358. n:_hours_between(%1ds,%2ds)=cast(extract('epoch' from %2 - %1 ) / 3600 as integer);
  359. n:_minutes_between(%1ds,%2ds)=cast(extract('epoch' from %2 - %1 ) /60 as integer);
  360. n:_seconds_between(%1ds,%2ds)=extract('epoch' from %2 - %1 );
  361. n:_days_to_end_of_month(%1ds)=cast(extract('day' from ((date_trunc('month',%1) + interval '1 month' - interval '1 day') - cast(%1 as date) )) as integer);
  362. n:_day_of_year(%1ds)=cast(extract(doy from %1) as integer);
  363. n:_day_of_week(%1ds, %2n)=(mod(cast(extract(dow from %1) +7-%2 as int),7)+1);
  364. ;n:_age(%1ds)=;
  365. ;n:_ymdint_between(%1ds,%2ds)=;
  366. ; must be iso 8601 compliant
  367. ;n:_week_of_year(%1ds)=;
  368. ;n:_round(%1n, %2n)=;
  369. n:coguda#extract_year(%1ds)=extract(year from %1);
  370. n:coguda#extract_month(%1ds)=extract(month from %1);
  371. n:coguda#extract_day(%1ds)=extract(day from %1);
  372. n:coguda#extract_hour(%1st)=extract(hour from %1);
  373. n:coguda#extract_minute(%1st)=extract(minute from %1);
  374. ;n:coguda#extract_second(%1st)=;
  375. [Operator Addition]
  376. [Operator Subtraction]
  377. [Operator Multiplication]
  378. [Operator Division]
  379. [Operator Comparison]
  380. TS=DT,OK
  381. DT=TS,OK
  382. [Operator Cast DATABASE:GREENPLUM]
  383. AD=AD,NA
  384. BL=AD,NA
  385. CH=CH,CH:DB,DB:DM,DM:DT,DT:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:TM,TM:TS,TS:VC,VC
  386. DB=DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM
  387. DM=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  388. DT=CH,CH:DT,DT:TS,TS:VC,VC
  389. FL=DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM
  390. IT=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  391. IV=AD,NA
  392. IY=AD,NA
  393. NA=CH,CH:DB,DB:DM,DM:DT,DT:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:TM,TM:TS,TS:VC,VC
  394. NC=AD,NA
  395. NU=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  396. QD=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  397. SM=CH,CH:DB,DB:DM,DM:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:VC,VC
  398. TM=TM,TM
  399. TS=DT,DT:TM,TM:TS,TS
  400. TT=AD,NA
  401. TZ=AD,NA
  402. VC=CH,CH:DB,DB:DM,DM:DT,DT:FL,FL:IT,IT:NU,NU:QD,QD:SM,SM:TM,TM:TS,TS:VC,VC
  403. [Directives Session]