sap_iq.properties 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. #IBM Confidential
  2. #
  3. #OCO Source Materials
  4. #
  5. #BI and PM: rdbmscert
  6. #
  7. #(C) Copyright IBM Corp. 2009,2020
  8. #
  9. #The source code for this program is not published or otherwise divested of its trade secrets,
  10. #irrespective of what has been deposited with the U.S. Copyright Office
  11. #
  12. #
  13. # Delimiters
  14. #
  15. # While a vendor may parse a statement with comments it may strip them out and the server not see them
  16. delimiters.commentBegin=/*
  17. delimiters.commentEnd=*/
  18. # delimiters.catalogDelimiter=
  19. # delimiters.schemaDelimiter=
  20. # delimiters.tableDelimiter=
  21. # delimiters.columnDelimiter=
  22. # delimiters.identifierQuoteString=
  23. # delimiters.searchStringEscape=
  24. # delimiters.catalogSeparator=
  25. #
  26. # Keywords
  27. #
  28. keywords.columnAlias=AS
  29. #
  30. # Limits
  31. #
  32. # Normally these values would be derived from the JDBC driver DatabaseMetadata
  33. # limits.maxBinaryLiteralLength=
  34. # limits.maxCharLiteralLength=
  35. # limits.maxColumnNameLength=
  36. # limits.maxColumnsInGroupby=
  37. # limits.maxColumnsInIndex=
  38. # limits.maxColumnsInOrderBy=
  39. # limits.maxColumnsInSelect=
  40. # limits.maxColumnsInTable=
  41. # limits.maxConnections=
  42. # limits.maxCursorNameLength=
  43. # limits.maxIndexLength=
  44. # limits.maxSchemaNameLength=
  45. # limits.maxProcedureNameLength=
  46. # limits.maxCatalogNameLength=
  47. # limits.maxRowSize=
  48. # limits.maxStatementLength=
  49. # limits.maxStatements=
  50. # limits.maxTableNameLength=
  51. # limits.maxTablesInSelect=
  52. # limits.maxUserNameLength=
  53. # limits.defaultTransactionIsolation=
  54. # limits.maxLengthInClause
  55. #
  56. # General
  57. #
  58. #
  59. # Null ordering
  60. #
  61. # No support is provided for vendors who change how nulls sort based on data type.
  62. general.nullsAreSortedAtEnd=false
  63. general.nullsAreSortedAtStart=false
  64. general.nullsAreSortedHigh=false
  65. general.nullsAreSortedLow=true
  66. # Unable to specificy how nulls order on a cursor.
  67. general.nullsOrdering=false
  68. #
  69. # Various
  70. #
  71. supports.columnAliasing=true
  72. supports.tableCorrelationNames=true
  73. supports.expressionsInOrderBy=true
  74. supports.orderByAlias=true
  75. supports.orderByName=true
  76. supports.orderByOrdinal=true
  77. supports.expressionsInINPredicate=true
  78. supports.likeEscapeClause=true
  79. supports.fullOuterJoins=true
  80. supports.outerJoins=true
  81. supports.stitchJoins=false
  82. # Subqueries not supported in Group-by
  83. # Subquery column alias not supported
  84. supports.subqueriesInComparisons=true
  85. supports.subqueriesInExists=true
  86. supports.subqueriesInIns=true
  87. supports.subqueriesInQuantifieds=true
  88. supports.subqueriesInCase=false
  89. supports.correlatedSubqueries=true
  90. supports.scalarSubqueries=true
  91. supports.withClauseInDerivedTable=false
  92. supports.nestedWithClause=false
  93. supports.recursiveWithClause=false
  94. supports.integerDivision=true
  95. supports.nestedOlap=false
  96. supports.derivedColumnLists=true
  97. # Does not allow grouping on non project column
  98. supports.blobsInGroupBy=false
  99. supports.blobsInOrderBy=false
  100. supports.emptyStringIsNull=false
  101. supports.concatNullIsNull=false
  102. supports.expressionsInGroupBy=false
  103. supports.parameterMarkers=false
  104. supports.constantsInWindows=false
  105. supports.callProcedureInDerivedTable=false
  106. supports.join.subqueriesInOnClause=false
  107. supports.top.0=false
  108. #casting with formatting pattern support
  109. supports.formatters.string_to_date=false
  110. supports.formatters.string_to_time=false
  111. supports.formatters.string_to_time_with_time_zone=false
  112. supports.formatters.string_to_timestamp=false
  113. supports.formatters.string_to_timestamp_with_time_zone=false
  114. #
  115. # Grouping query optimization
  116. #
  117. # If the RDBMS has costing/execution issues with group by or distinct consider these transforms
  118. performance.convertGroupByToDistinct=false
  119. performance.convertDistinctToGroupBy=false
  120. # V5 master-detail optimization when allRows optimization is specified
  121. v5.master-detail.transform=false
  122. #
  123. # Commands
  124. #
  125. commands.Select=SELECT
  126. commands.Call=CALL
  127. #
  128. # Tables
  129. #
  130. tables.joined=true
  131. tables.derived=true
  132. # Does not enforce ISO SQL lateral join exceptions
  133. tables.lateral.derived=false
  134. #
  135. # Constructors
  136. #
  137. constructors.table=false
  138. constructors.row=false
  139. constructors.array=false
  140. constructors.period=false
  141. #
  142. # Clauses
  143. #
  144. clauses.From=FROM
  145. clauses.Where=WHERE
  146. clauses.GroupBy=GROUP BY
  147. clauses.Having=HAVING
  148. # Recursive form of common table expression not supported
  149. # Common table expression cannot be used within a derived table
  150. clauses.With=WITH
  151. clauses.OrderBy=ORDER BY
  152. clauses.Distinct=DISTINCT
  153. clauses.Top=TOP %1$s
  154. clauses.Top.Position=distinct.top
  155. clauses.TableSampleSystem=
  156. clauses.TableSampleBernoulli=
  157. #
  158. # Joins
  159. #
  160. # Does not allow on condition to use set functions
  161. joins.Cross=%1$s CROSS JOIN %2$s
  162. joins.Inner=%1$s INNER JOIN %2$s ON %3$s
  163. joins.LeftOuter=%1$s LEFT OUTER JOIN %2$s ON %3$s
  164. joins.RightOuter=%1$s RIGHT OUTER JOIN %2$s ON %3$s
  165. joins.FullOuter=%1$s FULL OUTER JOIN %2$s ON %3$s
  166. joins.RightNested=(%1$s)
  167. #
  168. # Set Operators
  169. #
  170. # One or more set operations does not follow ISO data type combination rules. Can effect set operations, CASE, COALESCE...
  171. operators.set.Union=
  172. operators.set.Union.all=
  173. operators.set.Intersect=
  174. operators.set.Intersect.all=
  175. operators.set.Except=
  176. operators.set.Except.all=
  177. #
  178. # Logical Operators
  179. #
  180. operators.logical.And=%1$s AND %2$s
  181. operators.logical.Or=%1$s OR %2$s
  182. operators.logical.Not=NOT ( %1$s )
  183. operators.logical.Is=
  184. operators.logical.IsNot=
  185. #
  186. # Arithmetic and Character operators
  187. #
  188. operators.arithmetic.Add[any,any]=%1$s + %2$s
  189. operators.arithmetic.Subtract[any,any]=%1$s - %2$s
  190. operators.arithmetic.Subtract[datetime,any]=
  191. operators.arithmetic.Subtract[any,datetime]=
  192. operators.arithmetic.Multiply[any,any]=%1$s * %2$s
  193. operators.arithmetic.Divide[any,any]=%1$s / %2$s
  194. operators.arithmetic.Divide[any,integer]=%1$s / cast(%2$s as DOUBLE)
  195. operators.arithmetic.Divide[integer, any]= cast(%1$s as DOUBLE) / %2$s
  196. operators.arithmetic.UnaryPlus[any]=+%1$s
  197. operators.arithmetic.Negate[any]=-%1$s
  198. operators.arithmetic.Concat[any,any]=%1$s || %2$s
  199. operators.arithmetic.Mod[any,float]=
  200. operators.arithmetic.Mod[any,double]=
  201. operators.arithmetic.Mod[any,any]=MOD(%1$2, %2$s)
  202. #
  203. # Grouping Operators
  204. #
  205. operators.groupBy.Rollup=ROLLUP
  206. operators.groupBy.Cube=CUBE
  207. operators.groupBy.GroupingSets=
  208. #
  209. # Comparison Predicates
  210. #
  211. #
  212. # Comparisons involving floats and doubles can be inaccurate due how they are represented
  213. # on the server
  214. #
  215. predicates.comparison.Equals[any,any]=%1$s = %2$s
  216. predicates.comparison.GreaterThan[any,any]=%1$s > %2$s
  217. predicates.comparison.GreaterThanOrEquals[any,any]=%1$s >= %2$s
  218. predicates.comparison.LessThan[decimal,any]=%1$s < %2$s
  219. predicates.comparison.LessThan[any,any]=%1$s < %2$s
  220. predicates.comparison.LessThanOrEquals[any,any]=%1$s <= %2$s
  221. predicates.comparison.NotEquals[any,any]=%1$s <> %2$s
  222. #
  223. # Predicates
  224. #
  225. predicates.In[any,any]=%1$s IN ( %2$s )
  226. predicates.IsNull=%1$s IS NULL
  227. predicates.IsNotNull=%1$s IS NOT NULL
  228. predicates.Like=%1$s LIKE %2$s
  229. predicates.Like.escape=%1$s LIKE %2$s ESCAPE %3$s
  230. predicates.Similar.escape=
  231. predicates.Exists=EXISTS %1$s
  232. predicates.All=ALL %1$s
  233. predicates.Some=SOME %1$s
  234. predicates.IsDistinctFrom[any,any]=(%1$s IS NULL AND %2$s IS NOT NULL) OR (%1$s IS NOT NULL AND %2$s IS NULL) OR %1$s <> %2$s
  235. predicates.IsNotDistinctFrom[any,any]=%1$s = %2$s OR (%1$s IS NULL AND %2$s IS NULL)
  236. predicates.LikeRegex=
  237. predicates.Overlaps[any,any,any,any]=
  238. predicates.Similar=
  239. predicates.Similar.escape=
  240. #
  241. # Period predicates.
  242. #
  243. predicates.PeriodOverlaps[any,any]=
  244. predicates.PeriodEquals[any,any]=
  245. predicates.PeriodContains[any,any]=
  246. predicates.PeriodPrecedes[any,any]=
  247. predicates.PeriodSucceeds[any,any]=
  248. predicates.PeriodImmediatelyPrecedes[any,any]=
  249. predicates.PeriodImmediatelySucceeds[any,any]=
  250. #
  251. # Conditional expressions
  252. #
  253. # One or more case operations does not follow ISO type rules.
  254. expressions.SimpleCase=CASE
  255. expressions.SearchedCase=CASE
  256. #expressions.Coalesce[timestamp,any]=
  257. expressions.Coalesce=COALESCE(%1$s)
  258. #expressions.Coalesce[numeric,timestamp]=
  259. #expressions.Coalesce[date,timestamp]=
  260. expressions.NullIf=NULLIF(%1$s, %2$s)
  261. #expressions.NullIf[timestamp,any]=
  262. #expressions.NullIf[date,timestamp]=
  263. # NULLIF(%1$s, %2$s) is equivalent to CASE WHEN %1$s = %2$s THEN NULL ELSE %1$s END
  264. # Minimum number of arguments for Coalesce function.
  265. expressions.Coalesce.minArgs=2
  266. #
  267. # Cast
  268. #
  269. expressions.Cast[any,any]=CAST(%1$s AS %2$s)
  270. expressions.Cast[time,timestamp]=
  271. # Precision is lost, fractional seconds are not rendered
  272. expressions.Cast[time,text]=
  273. expressions.Cast[timestamp,text]=
  274. #
  275. # Extract
  276. #
  277. expressions.Extract.YEAR[any]=DATEPART(YEAR, %1$s)
  278. expressions.Extract.MONTH[any]=DATEPART(MONTH, %1$s)
  279. expressions.Extract.DAY[any]=DATEPART(DAY, %1$s)
  280. expressions.Extract.HOUR[any]=DATEPART(HOUR, %1$s)
  281. expressions.Extract.MINUTE[any]=DATEPART(MINUTE, %1$s)
  282. expressions.Extract.SECOND[timestamp]=(DATEPART(SECOND, %1$s) + (DATEPART(MILLISECOND, %1$s ) / 1000.0))
  283. expressions.Extract.SECOND[time]=DATEPART(SECOND, %1$s)
  284. #
  285. # Trim
  286. # Only supports trimming of spaces
  287. expressions.Trim.BOTH[any]=TRIM(%1$s)
  288. expressions.Trim.LEADING[any]=LTRIM(%1$s)
  289. expressions.Trim.TRAILING[any]=RTRIM(%1$s)
  290. expressions.Trim.BOTH[any,any]=
  291. expressions.Trim.LEADING[any,any]=
  292. expressions.Trim.TRAILING[any,any]=
  293. #
  294. # Window clause
  295. #
  296. clauses.Window=
  297. olap.PartitionBy=PARTITION BY %1$s
  298. # Lack of window ordering impacts many aggregates being pushed
  299. # Unable to specify a literal in window ordering
  300. # Unable to specify ordering in a window
  301. general.nullsOrderingInWindowSpecification=false
  302. olap.OrderBy= ORDER BY %1$s
  303. #
  304. # Window specification.
  305. # Sybase IQ interprets missing frame specification with order by as a "RANGE".
  306. #
  307. olap.Window.Specification[POF]=true
  308. olap.Window.Specification[PF]=true
  309. olap.Window.Specification[OF]=true
  310. olap.Window.Specification[PO]=false
  311. olap.Window.Specification[P]=true
  312. olap.Window.Specification[O]=false
  313. olap.Window.Specification[F]=true
  314. olap.Window.Specification[]=true
  315. #
  316. # Olap Distinct
  317. #
  318. olap.Min.distinct[any]=
  319. olap.Max.distinct[any]=
  320. olap.Sum.distinct[any]=
  321. olap.Avg.distinct[any]=
  322. olap.Count.distinct[any]=
  323. #
  324. # Aggregates
  325. #
  326. aggregates.Max[timestamp]=
  327. aggregates.Max[time]=MAX(%1$s)
  328. aggregates.Max[text]=MAX(%1$s)
  329. aggregates.Max[numeric]=MAX(%1$s)
  330. aggregates.Max[date]=MAX(%1$s)
  331. aggregates.Min[timestamp]=
  332. aggregates.Min[time]=MIN(%1$s)
  333. aggregates.Min[text]=MIN(%1$s)
  334. aggregates.Min[numeric]=MIN(%1$s)
  335. aggregates.Min[date]=MIN(%1$s)
  336. aggregates.Count[any]=COUNT(%1$s)
  337. aggregates.CountStar[]=COUNT(*)
  338. aggregates.Sum[any]=SUM(%1$s)
  339. aggregates.Avg[any]=AVG(%1$s)
  340. aggregates.StdDevPop[any]=STDDEV_POP(%1$s)
  341. aggregates.StdDevSamp[any]=STDDEV_SAMP(%1$s)
  342. aggregates.VarPop[any]=VAR_POP(%1$s)
  343. aggregates.VarSamp[any]=VAR_SAMP(%1$s)
  344. aggregates.Grouping[any]=
  345. # Disabled due to XMLELEMENT being returned as long varchar and not SQLXML
  346. aggregates.XMLAgg=
  347. aggregates.CumeDistH[any,any]=
  348. aggregates.PercentileCont[any,any]=PERCENTILE_CONT(%1$s) WITHIN GROUP (ORDER BY %2$s)
  349. aggregates.PercentileDisc[any,any]=PERCENTILE_DISC(%1$s) WITHIN GROUP (ORDER BY %2$s)
  350. aggregates.Median[any]=MEDIAN(%1$s)
  351. aggregates.ArrayAgg[any]=
  352. aggregates.ArrayAgg[any,any]=
  353. aggregates.Collect[any]=
  354. aggregates.ApproxCountDistinct[any]=
  355. #
  356. # Distinct aggregates
  357. #
  358. aggregates.Avg.distinct[any]=AVG(DISTINCT %1$s)
  359. aggregates.Min.distinct[any]=MIN(DISTINCT %1$s)
  360. aggregates.Max.distinct[any]=MAX(DISTINCT %1$s)
  361. aggregates.Count.distinct[any]=COUNT(DISTINCT %1$s)
  362. aggregates.Sum.distinct[any]=SUM(DISTINCT %1$s)
  363. #
  364. # Linear regression aggregates
  365. #
  366. aggregates.Corr[any,any]=CORR(%1$s, %2$s)
  367. aggregates.CovarPop[any,any]=COVAR_POP(%1$s, %2$s)
  368. aggregates.CovarSamp[any,any]=COVAR_SAMP(%1$s, %2$s)
  369. aggregates.RegrAvgX[any,any]=REGR_AVGX(%1$s, %2$s)
  370. aggregates.RegrAvgY[any,any]=REGR_AVGY(%1$s, %2$s)
  371. aggregates.RegrCount[any,any]=REGR_COUNT(%1$s, %2$s)
  372. aggregates.RegrIntercept[any,any]=REGR_INTERCEPT(%1$s, %2$s)
  373. aggregates.RegrR2[any,any]=REGR_R2(%1$s, %2$s)
  374. aggregates.RegrSlope[any,any]=REGR_SLOPE(%1$s, %2$s)
  375. aggregates.RegrSXX[any,any]=REGR_SXX(%1$s, %2$s)
  376. aggregates.RegrSXY[any,any]=REGR_SXY(%1$s, %2$s)
  377. aggregates.RegrSYY[any,any]=REGR_SYY(%1$s, %2$s)
  378. #
  379. # JSON aggregates.
  380. #
  381. aggregates.JSONArrayAgg=
  382. aggregates.JSONObjectAgg=
  383. #
  384. # Character scalar functions
  385. #
  386. functions.Upper[any]=UPPER(%1$s)
  387. functions.Lower[any]=LOWER(%1$s)
  388. functions.Upper[blob]=
  389. functions.Lower[blob]=
  390. # Some position cases did not pass and should be reviewed.
  391. functions.Position[any,any]=
  392. functions.Substring[any,any]=SUBSTR(%1$s, %2$s)
  393. functions.Substring[any,any,any]=SUBSTR(%1$s, %2$s, %3$s)
  394. functions.Ascii[any]=
  395. functions.CharLength[any]=CHAR_LENGTH(%1$s)
  396. functions.OctetLength[any]=OCTET_LENGTH(%1$s)
  397. functions.BitLength[any]=BIT_LENGTH(%1$s)
  398. functions.Position[any,any]=
  399. functions.Index[any,any]=
  400. functions.Translate[any,any]=
  401. functions.Normalize[any]=
  402. functions.Normalize[any,any]=
  403. functions.Normalize[any,any,any]=
  404. #Substring function to negative START value to parse the input string from its rightmost end.
  405. functions.SubstringR[any,any]=CASE WHEN (%2$s) < 0 THEN (SUBSTR( %1$s, (CHAR_LENGTH(%1$s ) - ABS(%2$s) + 1))) ELSE (SUBSTR(%1$s, %2$s)) END
  406. functions.SubstringR[any,any,any]=CASE WHEN (%2$s) < 0 THEN (SUBSTR( %1$s, (CHAR_LENGTH(%1$s ) - ABS(%2$s) + 1), %3$s)) ELSE (SUBSTR(%1$s, %2$s, %3$s)) END
  407. #
  408. # Regular expression functions.
  409. #
  410. functions.SubstringRegex[any,any,any,any,any]=
  411. functions.OccurrencesRegex[any,any,any,any]=
  412. functions.PositionRegex[any,any,any,any,any,any]=
  413. #
  414. # Numeric scalar functions
  415. #
  416. functions.Abs[any]=ABS(%1$s)
  417. functions.Abs[interval_day_time]=
  418. functions.Abs[interval_year_month]=
  419. functions.Ceiling[any]=CEIL(%1$s)
  420. functions.Exp[any]=EXP(%1$s)
  421. functions.Floor[any]=FLOOR(%1$s)
  422. functions.Ln[any]=LN(%1$s)
  423. functions.Log10[any]=LOG10(%1$s)
  424. fumctions.Power[any,any]=POWER(%1$s, %2$s)
  425. functions.Random[]=
  426. functions.Random[any]=
  427. functions.Round[any,any]=ROUND(%1$s, %2$s)
  428. functions.Sign[any]=SIGN(%1$s)
  429. functions.Sqrt[any]=SQRT(%1$s)
  430. functions.WidthBucket[any,any,any,any]=
  431. #
  432. # Array scalar functions.
  433. #
  434. functions.Cardinality[any]=
  435. functions.TrimArray[any,any]=
  436. #
  437. # Trig Functions
  438. #
  439. functions.Cos[any]=COS(%1$s)
  440. functions.Coshyp[any]=
  441. functions.Sin[any]=SIN(%1$s)
  442. functions.Sinhyp[any]=
  443. functions.Tan[any]=TAN(%1$s)
  444. functions.Tanhyp[any]=
  445. #
  446. # Olap Functions
  447. #
  448. olap.Min[any]=MIN(%1$s)
  449. olap.Max[any]=MAX(%1$s)
  450. olap.Sum[any]=SUM(%1$s)
  451. olap.Avg[any]=AVG(%1$s)
  452. olap.Count[any]=COUNT(%1$s)
  453. olap.CountStar[]=COUNT(*)
  454. # Sybase IQ does support cume_dist but it does not support null ordering
  455. # in a window specification. Another restriction is the cume_dist can only have one
  456. # key in the 'order by' clause. This causes an issue with the transformation ConvertNullOrderingInSort,
  457. # which gets around the null ordering issue by adding a second sort key to sort nulls properly.
  458. # All that to say, we need to process this function locally.
  459. # Olap lag did not throw expected exceptions
  460. olap.Lag[any]=LAG(%1$s)
  461. olap.Lag[any,any]=LAG(%1$s, %2$s)
  462. olap.Lag[any,double]=
  463. olap.Lag[any,float]=
  464. olap.Lag[any,any,any]=LAG(%1$s, %2$s, %3$s)
  465. olap.Lag[any,double,any]=
  466. olap.Lag[any,float,any]=
  467. olap.Lag[any,any,any,any]=
  468. # Olap lead did not throw expected exceptions
  469. olap.Lead[any]=LEAD(%1$s)
  470. olap.Lead[any,any]=LEAD(%1$s, %2$s)
  471. olap.Lead[any,double]=
  472. olap.Lead[any,float]=
  473. olap.Lead[any,any,any]=LEAD(%1$s, %2$s, %3$s)
  474. olap.Lead[any,double,any]=
  475. olap.Lead[any,float,any]=
  476. olap.Lead[any,any,any,any]=
  477. olap.NthValue[any,any]=
  478. olap.NthValue[any,any,any]=
  479. olap.NthValue[any,any,any,any]=
  480. olap.NTile[any]=
  481. olap.Tertile[]=
  482. olap.Rank[]=RANK()
  483. olap.DenseRank[]=DENSE_RANK()
  484. olap.PercentRank[]=PERCENT_RANK()
  485. olap.CumeDist[]=
  486. olap.RatioToReport[any]=
  487. olap.RowNumber[]=
  488. olap.Difference[any]=
  489. olap.FirstValue[any]=FIRST_VALUE(%1$s)
  490. olap.LastValue[any]=LAST_VALUE(%1$s)
  491. olap.PercentileCont[any,any]=
  492. olap.PercentileDisc[any,any]=
  493. olap.Median[any]=MEDIAN(%1$s)
  494. olap.Collect[any]=
  495. #
  496. # Temporal value expressions
  497. #
  498. # Note: JDBC does not define fractional seconds for TIME data type.
  499. functions.CurrentDate[]=CURRENT DATE
  500. functions.CurrentTime[]=CURRENT TIME
  501. functions.CurrentTimestamp[]=CURRENT TIMESTAMP
  502. functions.CurrentTimestamp[numeric]=CURRENT TIMESTAMP
  503. functions.CurrentTime[numeric]=
  504. #Ignore the numeric value as in classic stack
  505. functions.LocalTime[]=CURRENT TIME
  506. functions.LocalTimestamp[]=CURRENT TIMESTAMP
  507. functions.LocalTime[numeric]=CURRENT TIME
  508. functions.LocalTimestamp[numeric]=CURRENT TIMESTAMP
  509. #
  510. # XML Functions
  511. # disabled until the XML support is formalized.
  512. #
  513. functions.XMLAttributes=
  514. functions.XMLComment=
  515. functions.XMLConcat=
  516. functions.XMLDocument=
  517. functions.XMLElement=
  518. functions.XMLExists=
  519. functions.XMLForest=
  520. functions.XMLParse=
  521. functions.XMLPI=
  522. functions.XMLNamespaces=
  523. functions.XMLQuery=
  524. functions.XMLSerialize=
  525. functions.XMLTable=
  526. functions.XMLText=
  527. functions.XMLTransform=
  528. functions.XMLValidate=
  529. #
  530. # JSON functions.
  531. #
  532. functions.JSONArray=
  533. functions.JSONExists=
  534. functions.JSONObject=
  535. functions.JSONQuery=
  536. functions.JSONTable=
  537. functions.JSONValue=
  538. #
  539. # Business functions.
  540. #
  541. functions.AddFractionalSeconds[any,any]=
  542. functions.AddSeconds[any,any]=DATEADD( SECOND, %2$s, %1$s )
  543. functions.AddMinutes[any,any]=DATEADD( MINUTE, %2$s, %1$s )
  544. functions.AddHours[any,any]=DATEADD( HOUR, %2$s, %1$s )
  545. functions.AddDays[any,any]=DATEADD( DAY, %2$s, %1$s )
  546. functions.AddWeeks[any,any]=DATEADD( WEEK, %2$s, %1$s )
  547. functions.AddMonths[any,any]=DATEADD( MONTH, %2$s, %1$s )
  548. functions.AddQuarters[any,any]=DATEADD( QUARTER, %2$s, %1$s )
  549. functions.AddYears[any,any]=DATEADD( YEAR, %2$s, %1$s )
  550. functions.FractionalSecondsBetween[any,any]=
  551. functions.SecondsBetween[any,any]=DATEDIFF( SECOND, %2$s, %1$s )
  552. functions.MinutesBetween[any,any]=DATEDIFF( MINUTE, %2$s, %1$s )
  553. functions.HoursBetween[any,any]=DATEDIFF( HOUR, %2$s, %1$s )
  554. functions.DaysBetween[any,any]=DATEDIFF( DAY, %2$s, %1$s )
  555. functions.WeeksBetween[any,any]=DATEDIFF( WEEK, %2$s, %1$s )
  556. functions.MonthsBetween[any,any]=DATEDIFF( MONTH, %2$s, %1$s )
  557. functions.QuartersBetween[any,any]=DATEDIFF( QUARTER, %2$s, %1$s )
  558. functions.YearsBetween[any,any]=DATEDIFF( YEAR, %2$s, %1$s )
  559. functions.Age[any]=
  560. functions.WeekOfYear[any]=
  561. functions.YMDIntBetween[any,any]=
  562. functions.DayOfWeek[any,any]=(MOD(( MOD(( DATEPART( WEEKDAY, %1$s ) + 5 ), 7 ) - %2$s + 8 ), 7) + 1)
  563. functions.DayOfYear[any]=DATEPART( DAYOFYEAR, %1$s )
  564. functions.DaysToEndOfMonth[any]=DATEDIFF( DAY, %1$s, DATEADD( DAY, -1, DATEADD( MONTH, 1, DATEADD( DAY, 1 - DATEPART( DAY, %1$s ), %1$s ) ) ) )
  565. functions.FirstOfMonth[any]=DATEADD( DAY, -DATEPART( DAY, %1$s ) + 1, %1$s )
  566. functions.LastOfMonth[any]=DATEADD( DAY, -1, DATEADD( MONTH, 1, DATEADD( DAY, -DAY( %1$s ) + 1, %1$s ) ) )
  567. functions.MakeTimestamp[any,any,any]=CAST( YMD(%1$s, %2$s, %3$s ) AS TIMESTAMP )
  568. #
  569. # Literals
  570. #
  571. literals.integer=true
  572. literals.smallint=true
  573. literals.long=true
  574. literals.decimal=true
  575. literals.float=true
  576. literals.double=true
  577. literals.char=true
  578. literals.nchar=true
  579. literals.varchar=true
  580. literals.nvarchar=false
  581. literals.clob=true
  582. literals.interval_year=false
  583. literals.interval_month=false
  584. literals.interval_year_to_month=false
  585. literals.interval_day=false
  586. literals.interval_hour=false
  587. literals.interval_minute=false
  588. literals.interval_second=false
  589. literals.interval_day_to_hour=false
  590. literals.interval_day_to_minute=false
  591. literals.interval_day_to_second=false
  592. literals.interval_hour_to_minute=false
  593. literals.interval_hour_to_second=false
  594. literals.interval_minute_to_second=false
  595. literals.date=true
  596. literals.time=true
  597. literals.time_with_time_zone=false
  598. literals.timestamp=true
  599. literals.timestamp_with_time_zone=false
  600. literals.binary=true
  601. literals.boolean=true
  602. literals.xml=true
  603. # Literal format specifications. Formats are compatible with String.format().
  604. # Values for default behaviour are listed.
  605. # Only char, temporal and string types can be overridden.
  606. # Fractional seconds are presented as a string of up to 10 characters: '.' followed by 9 character
  607. # 0-padded string representing nanoseconds or empty.
  608. literals.format.boolean=TRUE:FALSE:UNKNOWN
  609. literals.format.char='%s'
  610. literals.format.clob='%s'
  611. literals.format.date=CAST ('%1$04d-%2$02d-%3$02d' as date)
  612. literals.format.nchar=N'%s'
  613. literals.format.nvarchar=N'%s'
  614. literals.format.time=cast ('%1$02d:%2$02d:%3$02d%4$.4s' as time)
  615. literals.format.timestamp=cast('%1$04d-%2$02d-%3$02d %4$02d:%5$02d:%6$02d%7$.7s' as timestamp)
  616. literals.format.varchar='%s'
  617. #
  618. # DataTypes
  619. #
  620. dataType.smallint=true
  621. dataType.integer=true
  622. dataType.long=true
  623. dataType.decimal=true
  624. dataType.float=true
  625. dataType.double=true
  626. dataType.char=true
  627. dataType.nchar=false
  628. dataType.varchar=true
  629. dataType.nvarchar=false
  630. dataType.clob=false
  631. dataType.blob=true
  632. dataType.date=true
  633. dataType.time=true
  634. dataType.time_with_time_zone=false
  635. dataType.timestamp=true
  636. dataType.timestamp_with_time_zone=false
  637. dataType.interval_year=false
  638. dataType.interval_month=false
  639. dataType.interval_year_to_month=false
  640. dataType.interval_day=false
  641. dataType.interval_hour=false
  642. dataType.interval_minute=false
  643. dataType.interval_second=false
  644. dataType.interval_day_to_hour=false
  645. dataType.interval_day_to_minute=false
  646. dataType.interval_day_to_second=false
  647. dataType.interval_hour_to_minute=false
  648. dataType.interval_hour_to_second=false
  649. dataType.interval_minute_to_second=false
  650. dataType.boolean=false
  651. dataType.binary=false
  652. dataType.xml=false
  653. dataType.period=false
  654. #
  655. # Override sampling policy with a different one.
  656. # 1. tablesample accepting values such as BERNOULLI or SYSTEM
  657. # 2. rowsample accepting values such as NTH or RANDOM
  658. #
  659. sampling.tablesample=
  660. sampling.rowsample=NTH
  661. #
  662. # Sybase IQ is not case-sensitive for identifiers
  663. #
  664. supports.mixedCaseIdentifiers=false
  665. supports.mixedCaseQuotedIdentifiers=false
  666. #
  667. # Collation
  668. #
  669. # Collation Sequence SQL (SQL statement for retrieving the collation sequence)
  670. # This statement returns a single row and single column containing the collation sequence
  671. collation.sequence.sql=SELECT default_collation, CASE WHEN 'A' = 'a' and 'é' = 'e' THEN 'CI_AI' WHEN 'A' = 'a' and 'é' <> 'e' THEN 'CI_AS' WHEN 'A' <> 'a' and 'é' <> 'e' THEN 'CS_AS' ELSE 'CS_AI' END as COLLATOR_STRENGTH FROM SYSINFO
  672. # Datbase Encoding SQL. This statement retrieves the charset name for the non-unicode character data.
  673. # This statement returns a single row and single column with the charset name for use in a java.nio.CharsetEncoder.
  674. database.charset.sql=
  675. #
  676. # dataType.comparable
  677. #
  678. # Used to indicate that some data types that are comparable locally may not by the database
  679. # e.g. dataType.comparable[varchar,nvarchar]=false
  680. #
  681. # dataType.promotion
  682. #
  683. # Used to indicate what direction the promotion needs to occur
  684. # <lhs> -> <rhs> these properties are not symetrical
  685. # e.g. dataType.promotion[char,nvarchar]=true