hqlcerrors.hpp 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  1. /*##############################################################################
  2. Copyright (C) 2011 HPCC Systems.
  3. All rights reserved. This program is free software: you can redistribute it and/or modify
  4. it under the terms of the GNU Affero General Public License as
  5. published by the Free Software Foundation, either version 3 of the
  6. License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU Affero General Public License for more details.
  11. You should have received a copy of the GNU Affero General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>.
  13. ############################################################################## */
  14. #ifndef HQLCERRORS_HPP
  15. #define HQLCERRORS_HPP
  16. #include "jexcept.hpp"
  17. #include "hqlerrors.hpp"
  18. /* Code Generation errors - defined in hqlcerrors.hpp */
  19. #define ERR_CODEGEN_FIRST 4000
  20. #define ERR_CODEGEN_LAST 4999
  21. #define HQLERR_NullSetCannotGenerate 4000
  22. #define HQLERR_NoMultiDimIndex 4001
  23. #define HQLERR_AllPassedExternal 4002
  24. #define HQLERR_IndexAllSet 4003
  25. #define HQLERR_CannotInstantiateAll 4004
  26. #define HQLERR_TooManyParameters 4005
  27. #define HQLERR_ColumnUnknownLength 4006
  28. #define HQLERR_BuildIndexVarLength 4007
  29. #define HQLERR_BuildIndexVarLengthDs 4008
  30. #define HQLERR_BadTypeInIndex 4009
  31. #define HQLERR_IndexNotValid 4010
  32. #define HQLERR_JoinConditionNoMatchIndex 4011
  33. #define HQLERR_FilepositionInPersist 4012
  34. #define HQLERR_PersistValueDiffDefinition 4013
  35. #define HQLERR_LimitNeedsDataset 4014
  36. #define HQLERR_CannotResourceActivity 4015
  37. #define HQLERR_UnsupportedHashWorkunit 4016
  38. #define HQLERR_UnknownVirtualAttr 4017
  39. #define HQLERR_IllegalPattern 4018
  40. #define HQLERR_VarSizeSortUseThor 4020
  41. #define HQLERR_SubstringOutOfRange 4021
  42. #define HQLERR_RankOnStored 4022
  43. #define HQLERR_CastInfiniteString 4023
  44. #define HQLERR_TooFewParameters 4024
  45. #define HQLERR_IndexTypeNotSupported 4025
  46. #define HQLERR_RankOnNull 4026
  47. #define HQLERR_MatchedUsedOutsideParse 4027
  48. #define HQLERR_BadMatchedPath 4028
  49. #define HQLERR_RoxieExpectedConstantFilename 4029
  50. #define HQLERR_MatchTextNotUnicode 4030
  51. #define HQLERR_MatchUnicodeNotText 4031
  52. #define HQLERR_MatchTextOrUnicode 4032
  53. #define HQLERR_ChildDatasetInOutput 4033
  54. #define HQLERR_DefineUseStrNotFound 4034
  55. #define HQLERR_DefineUseXYNotFound 4035
  56. #define HQLERR_DuplicateStoredDefinition 4036
  57. #define HQLERR_MismatchRowDiffType 4037
  58. #define HQLERR_FetchNotSupportMode 4038
  59. #define HQLERR_CounterNotValid 4039
  60. #define HQLERR_XmlTextNotValid 4040
  61. #define HQLERR_XmlUnicodeNotValid 4041
  62. #define HQLERR_MustMatchExactly 4042
  63. #define HQLERR_RowTooLarge 4043
  64. #define HQLERR_ShouldHaveBeenHoisted 4044
  65. #define HQLERR_NoArgumentsInValidator 4045
  66. #define HQLERR_NotSupportInRoxie 4046
  67. #define HQLERR_InputMergeNotSorted 4047
  68. #define HQLERR_TooComplicatedToPreload 4048
  69. #define HQLERR_KeyedNotKeyed 4049
  70. #define HQLERR_KeyedFollowsGap 4050
  71. #define HQLERR_WildFollowsGap 4051
  72. #define HQLERR_KeyedWildNoIndex 4052
  73. #define HQLERR_ZeroLengthIllegal 4053
  74. #define HQLERR_SetCastNotSupported 4054
  75. #define HQLERR_FuncNotInGlobalContext 4055
  76. #define HQLERR_SetUnknownLength 4056
  77. #define HQLERR_HashStoredTypeMismatch 4057
  78. #define HQLERR_CountAllSet 4058
  79. #define HQLERR_OnlyKeyFixedField 4059
  80. #define HQLERR_DuplicateStoredDiffType 4060
  81. #define HQLERR_RegexFeatureNotSupport 4061
  82. #define HQLERR_UnsupportedAttribute 4062
  83. #define HQLERR_GroupTableNotYetSupported 4063
  84. #define HQLERR_ChildQueriesNotSupported 4064
  85. #define HQLERR_HashStoredRecordMismatch 4066
  86. #define HQLERR_BadJoinConditionAtMost 4067
  87. #define HQLERR_BadKeyedJoinConditionAtMost 4068
  88. #define HQLERR_FullJoinNeedDataset 4069
  89. #define HQLERR_AtmostFailMatchCondition 4070
  90. #define HQLERR_KeyedLimitNotKeyed 4071
  91. #define HQLERR_ExtendMismatch 4072
  92. #define HQLERR_DuplicateNameOutput 4073
  93. #define HQLERR_ExtendTypeMismatch 4074
  94. #define HQLERR_OverwriteMismatch 4075
  95. #define HQLERR_ExtendOverwriteMismatch 4076
  96. #define HQLERR_EmbeddedCppNotAllowed 4078
  97. #define HQLERR_ContentsInSoapCall 4079
  98. #define HQLERR_FullKeyedNeedsFile 4081
  99. #define HQLERR_ExpectedConstant 4082
  100. #define HQLERR_AccessRowBlobInsideChildQuery 4083
  101. #define HQLERR_NoDatasetInCsvOutput 4084
  102. #define HQLERR_NoSetInCsvOutput 4085
  103. #define HQLERR_CouldNotDetermineMaxSize 4086
  104. #define HQLERR_CannotDetermineSizeVar 4087
  105. #define HQLERR_DuplicateDefinition 4088
  106. #define HQLERR_DuplicateDefinitionDiffType 4089
  107. #define HQLERR_WildNotReferenceIndex 4090
  108. #define HQLERR_InconsistentKeyedOpt 4091
  109. #define HQLERR_OptKeyedFollowsWild 4092
  110. #define HQLERR_KeyedCountCantNormalize 4093
  111. #define HQLERR_KeyedCountNotKeyed 4094
  112. #define HQLERR_KeyedCountNonKeyable 4095
  113. #define HQLERR_LookupNotActiveDataset 4096
  114. #define HQLERR_KeyedJoinTooComplex 4097
  115. #define HQLERR_KeyAccessNeedCast 4098
  116. #define HQLERR_KeyAccessNoKeyField 4099
  117. #define HQLERR_MaxLengthNotSetOnRecord 4100
  118. #define HQLERR_NotSupportedInsideNoThor 4102
  119. #define HQLERR_RegexNoTransformSupport 4103
  120. #define HQLERR_AccessMatchAttrInChildQuery 4104
  121. #define HQLERR_ExpectedTransformManyInputs 4105
  122. #define HQLERR_AmbiguousLeftRight 4106
  123. #define HQLERR_RhsKeyedNotKey 4107
  124. #define HQLERR_RemoteNoMeaning 4108
  125. #define HQLERR_RemoteGrouped 4109
  126. #define HQLERR_LibraryCannotContainWorkflow 4110
  127. #define HQLERR_LoopTooComplexForParallel 4111
  128. #define HQLERR_BadDfaOperator 4112
  129. #define HQLERR_MatchUtf8NotText 4113
  130. #define HQLERR_ThisNodeNotInsideAllNodes 4114
  131. #define HQLERR_SteppedNoJoin 4115
  132. #define HQLERR_UnsupportedRowsetRangeParam 4116
  133. #define HQLERR_CantProjectStepping 4117
  134. #define HQLERR_SteppedVariableSize 4118
  135. #define HQLERR_SteppedVariableOffset 4119
  136. #define HQLERR_TooComplexToStep 4120
  137. #define HQLERR_NoSteppingOnPayload 4121
  138. #define HQLERR_SteppedRangeOnlyOneDirection 4122
  139. #define HQLERR_SteppedMultiRange 4123
  140. #define HQLERR_SteppingNotMatchSortCondition 4124
  141. #define HQLERR_JoinNotMatchSortCondition 4125
  142. #define HQLERR_StepFieldNotKeyed 4126
  143. #define HQLERR_StepFieldNotContiguous 4127
  144. #define HQLERR_SortOrderMustMatchJoinFields 4128
  145. #define HQLERR_OrMultipleKeyfields 4129
  146. #define HQLERR_RowCompressRequireFixedSize 4130
  147. #define HQLERR_InputsAreTooComplexToUpdate 4131
  148. #define HQLERR_ThorDenormOnlyLeftOuterJoin 4132
  149. #define HQLERR_ThorDenormNoFeatureX 4133
  150. #define HQLERR_SkipNotValidHere 4134
  151. #define HQLERR_CsvNotSupportTableSet 4135
  152. #define HQLERR_ExpectedConstantWorkunit 4136
  153. #define HQLERR_ExpectedConstantDebug 4137
  154. #define HQLERR_LibraryMemberArgNotDefined 4138
  155. #define HQLERR_ConcreteMemberRequired 4139
  156. #define HQLERR_ThorHavingMustBeGrouped 4140
  157. #define HQLERR_XNotSupportedInsideChild 4141
  158. #define HQLERR_LibrariesCannotContainSideEffects 4142
  159. #define HQLERR_StarRangeOnlyInJoinCondition 4143
  160. #define HQLERR_KeyedDistributeNoSubstringJoin 4144
  161. #define HQLERR_MultipleStepped 4145
  162. #define HQLERR_RecursiveStored 4146
  163. #define HQLERR_RecursiveStoredOther 4146
  164. #define HQLERR_PipeNotAllowed 4147
  165. #define HQLERR_CannotDeduceNameDataset 4148
  166. #define HQLERR_ExpectedUpdateVariable 4149
  167. #define HQLERR_FailedToLoadSystemModule 4150
  168. #define HQLERR_RankOutOfRange 4152
  169. #define HQLERR_DatasetNotActive 4153
  170. #define HQLERR_CouldNotOpenTemplateXatY 4154
  171. #define HQLERR_CouldNotCreateOutputX 4155
  172. #define HQLERR_XDoesNotContainExpressionY 4156
  173. #define HQLERR_InvalidSetResultType 4157
  174. #define HQLERR_CouldNotFindDataset 4158
  175. #define HQLERR_CouldNotAnyDatasetX 4159
  176. #define HQLERR_NestedThorNodes 4160
  177. #define HQLERR_MissingTransformAssignXX 4161
  178. #define HQLERR_JoinXTooComplex 4162
  179. #define HQLERR_GlobalDedupFuzzy 4163
  180. #define HQLERR_GlobalDedupNoEquality 4164
  181. #define HQLERR_HashDedupNotSupportX 4165
  182. #define HQLERR_JoinSortedMustBeDataset 4166
  183. #define HQLERR_JoinSortedMustBeThor 4167
  184. #define HQLERR_SortAndCoSortConcurrent 4168
  185. #define HQLERR_WaitNotSupported 4169
  186. #define HQLERR_IndexHasActiveFields 4170
  187. #define HQLERR_GlobalHasActiveFields 4171
  188. #define HQLERR_ResourceCreateFailed 4172
  189. #define HQLERR_RecordNotCompatible 4173
  190. #define HQLERR_MissingTemplateTerminator 4174
  191. #define HQLERR_FailXUsedOutsideFailContext 4175
  192. #define HQLERR_GlobalSideEffectDependent 4176
  193. #define HQLERR_AggregateNeedMergeTransform 4177
  194. #define HQLERR_AggregateMissingGroupingFields 4178
  195. #define HQLERR_MaximumRowSizeOverflow 4179
  196. #define HQLERR_OpArgDependsDataset 4180
  197. #define HQLERR_CouldNotDetermineMinSize 4181
  198. #define HQLERR_OutsideGroupAggregate 4182
  199. #define HQLERR_ResourceAddAfterFinalManifest 4183
  200. #define HQLERR_SkipInsideCreateRow 4184
  201. //Warnings....
  202. #define HQLWRN_PersistDataNotLikely 4500
  203. #define HQLWRN_CaseCanNeverMatch 4501
  204. #define HQLWRN_NoWorkflowNoWaitOrNotify 4502
  205. #define HQLWRN_NoWorkflowNoWhen 4503
  206. #define HQLWRN_NoWorkflowNoSuccess 4504
  207. #define HQLWRN_ScheduleOmitted 4505
  208. #define HQLWRN_UnknownEventName 4506
  209. #define HQLWRN_UnknownEventShortcut 4507
  210. #define HQLWRN_IgnoringWaitOrNotify 4508
  211. #define HQLWRN_CannotRecreateDistribution 4509
  212. #define HQLWRN_RecursiveDependendencies 4510
  213. #define HQLWRN_MaxSizeExceedsSafeLimit 4512
  214. #define HQLWRN_TomitaMatchPattern 4513
  215. #define HQLWRN_KeyedFollowsGap 4515
  216. #define HQLWRN_LocalHasNoEffect 4516
  217. #define HQLWRN_CsvMaxLengthMismatch 4517
  218. #define HQLWRN_KeyedFoldedToGap 4518
  219. #define HQLWRN_FoldRemoveKeyed 4519
  220. #define HQLWRN_GlobalDoesntSeemToBe 4520
  221. #define HQLWRN_GroupedJoinIsLookupJoin 4521
  222. #define HQLWRN_ImplicitJoinLimit 4522
  223. #define HQLWRN_ImplicitReadLimit 4523
  224. #define HQLWRN_ImplicitReadAddLimit 4524
  225. #define HQLWRN_LimitAlwaysExceeded 4525
  226. #define HQLWRN_LimitAlwaysExceededX 4526
  227. #define HQLWRN_KeyedLimitIsZero 4527
  228. #define HQLWRN_LimitIsZero 4528
  229. #define HQLWRN_MoxieNoBias 4529
  230. #define HQLWRN_ParseVeryLargeDefinition 4530
  231. #define HQLWRN_JoinConditionFoldedNowAll 4531
  232. #define HQLWRN_MergeBadSortOrder 4532
  233. #define HQLWRN_OutputDependendOnScope 4533
  234. #define HQLWRN_OptionSetToLate 4534
  235. #define HQLWRN_WorkflowSeemsToBeDependent 4535
  236. #define HQLWRN_GlobalSideEffectDependent 4536
  237. #define HQLWRN_GrammarIsAmbiguous 4537
  238. #define HQLWRN_ComplexHelperClass 4538
  239. #define HQLWRN_TryAddingIndependent 4539
  240. #define HQLWRN_GroupedGlobalFew 4540
  241. //Temporary errors
  242. #define HQLERR_OrderOnVarlengthStrings 4601
  243. #define HQLERR_DistributionNoSequence 4604
  244. #define HQLERR_PhysicalJoinTooComplex 4606
  245. #define HQLERR_ArbitaryRepeatUnimplemented 4609
  246. #define HQLERR_TomitaNoUnicode 4610
  247. #define HQLERR_TomitaPatternTooComplex 4611
  248. #define HQLERR_CannotCreateSizedChildDataset 4613
  249. #define HQLERR_OnlyNormalizeSimpleChildren 4614
  250. #define HQLERR_RoxieLocalNotSupported 4615
  251. #define HQLERR_MinusOnString 4616
  252. #define HQLERR_ThorNotSupportStepping 4617
  253. #define HQLERR_OnceCannotAccessStored 4618
  254. #define HQLERR_ThorCombineOnlyLocal 4619
  255. #define HQLERR_ErrorAlreadyReported 4799 // special case...
  256. //Internal errors....
  257. #define HQLERR_NoClearOnLocalDataset 4800
  258. #define HQLERR_NoCreateLocalDataset 4801
  259. #define HQLERR_TableOutsideThor 4802
  260. #define HQLERR_ExtraAssignInTransform 4803
  261. #define HQLERR_CannotAccessStoredVariable 4804
  262. #define HQLERR_EvaluateTableNotInScope 4805
  263. #define HQLERR_FuncNotFound 4806
  264. #define HQLERR_InternalOutputScalar 4807
  265. #define HQLERR_DfaTooComplex 4808
  266. #define HQLERR_UnsupportedInlineQuery 4809
  267. #define HQLERR_CouldNotResolveFileposition 4813
  268. #define HQLERR_CastXNotImplemented 4814
  269. #define HQLERR_MatchedContextNotFound 4815
  270. #define HQLERR_BlobTranslationContextNotFound 4816
  271. #define HQLERR_RowsUsedOutsideContext 4817
  272. #define HQLERR_ExpectedParentContext 4818
  273. #define HQLERR_CounterNotFound 4820
  274. #define HQLERR_GraphContextNotFound 4821
  275. #define HQLERR_InvalidAcessStoredVariable 4822
  276. #define HQLERR_LibraryNoWorkunitRead 4823
  277. #define HQLERR_LibraryNoWorkunitWrite 4824
  278. #define HQLERR_GraphInputAccessedChild 4825
  279. #define HQLERR_InconsisentLocalisation 4826
  280. #define HQLERR_NoParentExtract 4827
  281. #define HQLERR_LibraryMustBeFunctional 4828
  282. #define HQLERR_InconsistentNaryInput 4829
  283. #define HQLERR_LinkedDatasetNoContext 4830
  284. #define HQLERR_InternalError 4833
  285. #define HQLERR_CannotGenerateSerializedCompare 4834
  286. #define HQLERR_ReadSpillBeforeWrite 4835
  287. #define HQLERR_DependencyWithinGraph 4836
  288. #define HQLERR_UnknownCompoundAssign 4837
  289. //#define HQLERR_Max 4999
  290. //---- Text for all errors (make it easy to internationalise) ---------------------------
  291. #define HQLERR_NullSetCannotGenerate_Text "INTERNAL: Cannot generate code for an empty set in this context"
  292. #define HQLERR_NoMultiDimIndex_Text "Multi dimensioned sets are not yet supported"
  293. #define HQLERR_AllPassedExternal_Text "ALL cannot be passed to an external service"
  294. #define HQLERR_IndexAllSet_Text "Indexing ALL is undefined"
  295. #define HQLERR_CannotInstantiateAll_Text "Cannot use ALL in this context"
  296. #define HQLERR_TooManyParameters_Text "Too many parameters passed to function '%s'"
  297. #define HQLERR_ColumnUnknownLength_Text "Cannot define column %s with an unknown length (use alien datatype)"
  298. #define HQLERR_BuildIndexVarLength_Text "BUILDINDEX can only be used to build fixed width indexes"
  299. #define HQLERR_BuildIndexVarLengthDs_Text "BUILDINDEX can only be used to build indexes on fixed width files"
  300. #define HQLERR_BadTypeInIndex_Text "INDEX does not support fields of type %s"
  301. #define HQLERR_IndexNotValid_Text "INDEX does not match the dataset being joined"
  302. #define HQLERR_JoinConditionNoMatchIndex_Text "Join condition does not contain sufficient information to use key"
  303. #define HQLERR_FilepositionInPersist_Text "Not yet implemented: Cannot use a record structure containing a virtual field (%s) with stored or persist"
  304. #define HQLERR_PersistValueDiffDefinition_Text "%s has more than one definition"
  305. #define HQLERR_LimitNeedsDataset_Text "LIMIT clause can only be applied to a dataset"
  306. #define HQLERR_CannotResourceActivity_Text "Cannot resource activity %s a cluster with %d nodes"
  307. #define HQLERR_UnsupportedHashWorkunit_Text "Unsupported option #WORKUNIT ('%s')"
  308. #define HQLERR_UnknownVirtualAttr_Text "INTERNAL: Unsupported virtual attribute '%s'"
  309. #define HQLERR_IllegalPattern_Text "Illegal pattern '%s..%s'"
  310. #define HQLERR_VarSizeSortUseThor_Text "THOR must be used for sorting or joining datasets with variable width rows"
  311. #define HQLERR_SubstringOutOfRange_Text "Substring index %d is outside the field range"
  312. #define HQLERR_RankOnStored_Text "RANK/RANKED not supported on list %s"
  313. #define HQLERR_CastInfiniteString_Text "Cannot cast a string of unknown length to another character set"
  314. #define HQLERR_TooFewParameters_Text "Not enough parameters passed to function '%s'"
  315. #define HQLERR_IndexTypeNotSupported_Text "Index is not supported for type %s yet"
  316. #define HQLERR_RankOnNull_Text "RANK has no meaning on an empty list"
  317. #define HQLERR_MatchedUsedOutsideParse_Text "%s can only be used in a record supplied to a PARSE() command"
  318. #define HQLERR_BadMatchedPath_Text "The parameter to MATCHED(%s) is not found in the pattern"
  319. #define HQLERR_RoxieExpectedConstantFilename_Text "Roxie requires constant filenames - expression %s cannot be computed at deployment time"
  320. #define HQLERR_MatchTextNotUnicode_Text "MATCHTEXT found where MATCHUNICODE was expected"
  321. #define HQLERR_MatchUnicodeNotText_Text "MATCHUNICODE found where MATCHTEXT was expected"
  322. #define HQLERR_MatchTextOrUnicode_Text "Only MATCHTEXT and MATCHUNICODE are valid inside a VALIDATE"
  323. #define HQLERR_ChildDatasetInOutput_Text "Records containing child datasets must be output to a file"
  324. #define HQLERR_DefineUseStrNotFound_Text "Definition of USE(%s) was not found"
  325. #define HQLERR_DefineUseXYNotFound_Text "Definition of USE(%s.%s) was not found"
  326. #define HQLERR_DuplicateStoredDefinition_Text "Duplicate definition of %s (use #stored to override default value)"
  327. #define HQLERR_MismatchRowDiffType_Text "ROWDIFF: Types are not compatible for field %s"
  328. #define HQLERR_FetchNotSupportMode_Text "FETCH not supported on dataset of kind %s"
  329. #define HQLERR_CounterNotValid_Text "COUNTER is not legal in this context"
  330. #define HQLERR_XmlTextNotValid_Text "XMLTEXT is only legal in a PARSE transform"
  331. #define HQLERR_XmlUnicodeNotValid_Text "XMLUNICODE is only legal inside a PARSE transform"
  332. #define HQLERR_MustMatchExactly_Text "Condition on DISTRIBUTE must match the key exactly"
  333. #define HQLERR_RowTooLarge_Text "Row size %u exceeds the maximum specified (%u)"
  334. #define HQLERR_ShouldHaveBeenHoisted_Text "Select expression should have been hoisted"
  335. #define HQLERR_NoArgumentsInValidator_Text "%s() cannot have a parameter inside a VALIDATE"
  336. #define HQLERR_NotSupportInRoxie_Text "%s is not supported in roxie queries"
  337. #define HQLERR_InputMergeNotSorted_Text "Input to MERGE does not appear to be sorted"
  338. #define HQLERR_TooComplicatedToPreload_Text "Expression is too complicated to preload"
  339. #define HQLERR_KeyedNotKeyed_Text "KEYED(%s) couldn't be looked up in a key."
  340. #define HQLERR_KeyedFollowsGap_Text "KEYED(%s) follows unfiltered component %s in the key%s"
  341. #define HQLERR_WildFollowsGap_Text "WILD(%s) follows unfiltered component %s in the key%s"
  342. #define HQLERR_KeyedWildNoIndex_Text "%s could not be implemented by the key"
  343. #define HQLERR_ZeroLengthIllegal_Text "Cannot process zero length rows"
  344. #define HQLERR_SetCastNotSupported_Text "Set casts aren't supported yet"
  345. #define HQLERR_FuncNotInGlobalContext_Text "Cannot call function %s in a non-global context"
  346. #define HQLERR_SetUnknownLength_Text "Sets of items of unknown length are not yet supported!"
  347. #define HQLERR_HashStoredTypeMismatch_Text "#STORED (%s) type mismatch (was '%s' replacement '%s')"
  348. #define HQLERR_CountAllSet_Text "Cannot count number of elements in ALL"
  349. #define HQLERR_OnlyKeyFixedField_Text "Can only key fixed fields at fixed offsets"
  350. #define HQLERR_DuplicateStoredDiffType_Text "Duplicate definition of %s with different type (use #stored to override default value)"
  351. #define HQLERR_RegexFeatureNotSupport_Text "Features are not supported by regex - did you mean repeat() instead of {}?"
  352. #define HQLERR_UnsupportedAttribute_Text "Option %s not yet supported on child datasets"
  353. #define HQLERR_GroupTableNotYetSupported_Text "Grouped tables not yet supported in this context"
  354. #define HQLERR_ChildQueriesNotSupported_Text "Nested child queries are not supported yet"
  355. #define HQLERR_HashStoredRecordMismatch_Text "#STORED (%s) records must match"
  356. #define HQLERR_BadJoinConditionAtMost_Text "ATMOST JOIN cannot be evaluated with this join condition%s"
  357. #define HQLERR_BadKeyedJoinConditionAtMost_Text "ATMOST JOIN cannot be evaluated with this join condition%s"
  358. #define HQLERR_FullJoinNeedDataset_Text "RIGHT for a full keyed join must be a disk based DATASET"
  359. #define HQLERR_AtmostFailMatchCondition_Text "ATMOST(%s) failed to match part of the join condition"
  360. #define HQLERR_KeyedLimitNotKeyed_Text "LIMIT(%s, KEYED) could not be merged into an index read"
  361. #define HQLERR_ExtendMismatch_Text "EXTEND is required on all outputs to NAMED(%s)"
  362. #define HQLERR_DuplicateNameOutput_Text "Duplicate output to NAMED(%s). EXTEND/OVERWRITE required"
  363. #define HQLERR_ExtendTypeMismatch_Text "OUTPUTs to NAMED(%s) have incompatible types"
  364. #define HQLERR_OverwriteMismatch_Text "OVERWRITE is required on all outputs to NAMED(%s)"
  365. #define HQLERR_ExtendOverwriteMismatch_Text "OVERWRITE/EXTEND should be consistent on all outputs to NAMED(%s)"
  366. #define HQLERR_EmbeddedCppNotAllowed_Text "Insufficient access rights to use embedded C++"
  367. #define HQLERR_ContentsInSoapCall_Text "Tag contents syntax <> is not supported by SOAPCALL"
  368. #define HQLERR_FullKeyedNeedsFile_Text "RIGHT side of a full keyed join must be a disk file"
  369. #define HQLERR_ExpectedConstant_Text "Expression is not constant: %s"
  370. #define HQLERR_AccessRowBlobInsideChildQuery_Text "Unimplemented: Cannot access row blob inside a child query, contact tech support"
  371. #define HQLERR_NoDatasetInCsvOutput_Text "Field '%s' with dataset type not supported in csv output"
  372. #define HQLERR_NoSetInCsvOutput_Text "Field '%s' with set type not supported in csv output"
  373. #define HQLERR_CouldNotDetermineMaxSize_Text "Cannot determine the maximum size of the expression"
  374. #define HQLERR_CannotDetermineSizeVar_Text "Cannot determine size because variable size dataset is not in scope. Try using sizeof(x,max)"
  375. #define HQLERR_DuplicateDefinition_Text "Duplicate definition of %s"
  376. #define HQLERR_DuplicateDefinitionDiffType_Text "Duplicate definition of %s with different type"
  377. #define HQLERR_WildNotReferenceIndex_Text "WILD() doesn't reference fields in key %s"
  378. #define HQLERR_InconsistentKeyedOpt_Text "Field %s cannot have both KEYED and KEYED,OPT conditions"
  379. #define HQLERR_OptKeyedFollowsWild_Text "KEYED(%s,OPT) follows a WILD() field in key %s"
  380. #define HQLERR_KeyedCountCantNormalize_Text "COUNT(,KEYED) cannot be used on a child dataset"
  381. #define HQLERR_KeyedCountNotKeyed_Text "Filter for COUNT(,KEYED) did not contained KEYED() expressions"
  382. #define HQLERR_KeyedCountNonKeyable_Text "KEYED COUNT used on a non-keyable dataset"
  383. #define HQLERR_LookupNotActiveDataset_Text "Attempting to lookup field %s in a dataset which has no active element"
  384. #define HQLERR_KeyedJoinTooComplex_Text "Key condition (%s) is too complex, it cannot be done with the key."
  385. #define HQLERR_KeyAccessNeedCast_Text "Key condition (%s) requires casts on comparison of field '%s'"
  386. #define HQLERR_KeyAccessNoKeyField_Text "Key condition (%s) does not have any comparisons against key fields"
  387. #define HQLERR_MaxLengthNotSetOnRecord_Text "No explicit maxlength provided for record %s"
  388. #define HQLERR_MinusOnString_Text "unary - cannot be performed on a string"
  389. #define HQLERR_NotSupportedInsideNoThor_Text "%s is not supported inside NOTHOR()"
  390. #define HQLERR_RegexNoTransformSupport_Text "Regular expression parsing doesn't support productions - need to use tomita"
  391. #define HQLERR_AccessMatchAttrInChildQuery_Text "Unimplemented: Cannot yet access $<n> inside a child query"
  392. #define HQLERR_ExpectedTransformManyInputs_Text "Ambiguous default production for rule with multiple inputs"
  393. #define HQLERR_AmbiguousLeftRight_Text "Selector %s is used ambiguously at multiple levels"
  394. #define HQLERR_RhsKeyedNotKey_Text "JOIN%s marked as KEYED does not have a key as the second parameter"
  395. #define HQLERR_RemoteNoMeaning_Text "ALLNODES(dataset) only legal in roxie and in thor child queries"
  396. #define HQLERR_RemoteGrouped_Text "ALLNODES() is not currently supported on grouped datasets"
  397. #define HQLERR_LibraryCannotContainWorkflow_Text "Library %s cannot contain any workflow actions%s"
  398. #define HQLERR_LoopTooComplexForParallel_Text "LOOP body too complicated to evaluate in parallel"
  399. #define HQLERR_BadDfaOperator_Text "Operator %s not supported inside DFAs"
  400. #define HQLERR_MatchUtf8NotText_Text "MATCHUTF8 found where MATCHUNICODE/MATCHTEXT was expected"
  401. #define HQLERR_ThisNodeNotInsideAllNodes_Text "THISNODE() can only be used inside ALLNODES()"
  402. #define HQLERR_SteppedNoJoin_Text "STEPPED(%s) cannot be evaluated in this context"
  403. #define HQLERR_UnsupportedRowsetRangeParam_Text "Parameter to RANGE() is too complex - not currently supported"
  404. #define HQLERR_CantProjectStepping_Text "Project of stepping fields is too complex"
  405. #define HQLERR_SteppedVariableSize_Text "Stepped field %s must have a fixed size"
  406. #define HQLERR_SteppedVariableOffset_Text "Stepped field %s must be at a fixed offset"
  407. #define HQLERR_TooComplexToStep_Text "Expression is too complex to STEP (%s)"
  408. #define HQLERR_NoSteppingOnPayload_Text "Cannot smart step on payload fields"
  409. #define HQLERR_SteppedRangeOnlyOneDirection_Text "STEPPED range condition could only be matched in one direction"
  410. #define HQLERR_SteppedMultiRange_Text "Multiple STEPPED comparisons %s >= "
  411. #define HQLERR_SteppingNotMatchSortCondition_Text "STEPPED condition is not compatible with the sort/merge condition (%s expected)"
  412. #define HQLERR_JoinNotMatchSortCondition_Text "JOIN condition is not compatible with the sort/merge condition"
  413. #define HQLERR_StepFieldNotKeyed_Text "STEPPED field %s is not keyed"
  414. #define HQLERR_StepFieldNotContiguous_Text "STEPPED field %s does not follow the previous stepped field"
  415. #define HQLERR_SortOrderMustMatchJoinFields_Text "Merge order must match all the stepped join fields"
  416. #define HQLERR_OrMultipleKeyfields_Text "Cannot OR together conditions on multiple key fields (%s)"
  417. #define HQLERR_RowCompressRequireFixedSize_Text "ROW compression can only be used on fixed size indexes"
  418. #define HQLERR_InputsAreTooComplexToUpdate_Text "UPDATE cannot be used when the inputs names aren't globally constant"
  419. #define HQLERR_ThorDenormOnlyLeftOuterJoin_Text "THOR currently only supports LEFT OUTER denormalize"
  420. #define HQLERR_ThorDenormNoFeatureX_Text "THOR doesn't support DENORMALIZE(%s)"
  421. #define HQLERR_SkipNotValidHere_Text "SKIP cannot be used here. It is only valid directly with a transform"
  422. #define HQLERR_CsvNotSupportTableSet_Text "Cannot read tables/datasets from a csv file"
  423. #define HQLERR_ExpectedConstantWorkunit_Text "Argument %s to #workunit must be a constant"
  424. #define HQLERR_ExpectedConstantDebug_Text "Argument %s to #debug must be a constant"
  425. #define HQLERR_LibraryMustBeFunctional_Text "Queries libraries must be implemented with a parameterised module"
  426. #define HQLERR_LibraryMemberArgNotDefined_Text "Member %s not defined in module passed as library parameter"
  427. #define HQLERR_ConcreteMemberRequired_Text "Member %s was undefined in a module"
  428. #define HQLERR_ThorHavingMustBeGrouped_Text "Thor does not support HAVING on a non-grouped dataset"
  429. #define HQLERR_XNotSupportedInsideChild_Text "%s not currently supported as a child action"
  430. #define HQLERR_LibrariesCannotContainSideEffects_Text "Definitions in libraries cannot have side effects (%s)"
  431. #define HQLERR_MultipleStepped_Text "Index read only supports single STEPPED expression"
  432. #define HQLERR_RecursiveStored_Text "#%s (%s) creates an illegal recursive reference"
  433. #define HQLERR_RecursiveStoredOther_Text "#%s (%s) creates an illegal recursive reference (%s also being processed)"
  434. #define HQLERR_PipeNotAllowed_Text "Insufficient access rights to use PIPE"
  435. #define HQLERR_CannotDeduceNameDataset_Text "Parameter to __nameof__ must be a dataset or an index"
  436. #define HQLERR_ExpectedUpdateVariable_Text "Expected a UPDATE attribute name"
  437. #define HQLERR_FailedToLoadSystemModule_Text "%s @ %d:%d"
  438. #define HQLERR_RankOutOfRange_Text "Index in RANK/RANKED is out of range"
  439. #define HQLERR_DatasetNotActive_Text "INTERNAL: Dataset is not active: '%s'"
  440. #define HQLERR_CouldNotOpenTemplateXatY_Text "Could not open thor template '%s' at '%s'"
  441. #define HQLERR_CouldNotCreateOutputX_Text "Could not create output '%s'"
  442. #define HQLERR_XDoesNotContainExpressionY_Text "Dataset '%.80s' does not contain expression '%.50s'"
  443. #define HQLERR_InvalidSetResultType_Text "Cannot return a result of this type from a workunit"
  444. #define HQLERR_CouldNotFindDataset_Text "Could not find dataset %s"
  445. #define HQLERR_CouldNotAnyDatasetX_Text "Could not find dataset %s (no tables in scope)"
  446. #define HQLERR_NestedThorNodes_Text "INTERNAL: Thor nodes should not be nested"
  447. #define HQLERR_MissingTransformAssignXX_Text "INTERNAL: Missing assignment from transform to %s[%p]"
  448. #define HQLERR_JoinXTooComplex_Text "JOIN%s contains no equality conditions - use ,ALL to allow"
  449. #define HQLERR_GlobalDedupFuzzy_Text "A global DEDUP(ALL) or local hash dedup cannot include comparisons in the dedup criteria"
  450. #define HQLERR_GlobalDedupNoEquality_Text "Global dedup,ALL must have a field to partition"
  451. #define HQLERR_HashDedupNotSupportX_Text "Hash dedup doesn't support %s"
  452. #define HQLERR_JoinSortedMustBeDataset_Text "SORTED() used by JOINED must be applied to a DATASET"
  453. #define HQLERR_JoinSortedMustBeThor_Text "SORTED() used by JOINED must be applied to a THOR dataset"
  454. #define HQLERR_SortAndCoSortConcurrent_Text "SORT supplied to COSORT needs to be executed at the same time"
  455. #define HQLERR_WaitNotSupported_Text "WAIT not yet supported"
  456. #define HQLERR_IndexHasActiveFields_Text "Index has fields %s in scope"
  457. #define HQLERR_GlobalHasActiveFields_Text "Global dataset has fields %s in scope"
  458. #define HQLERR_ResourceCreateFailed_Text "Create resource library %s failed"
  459. #define HQLERR_RecordNotCompatible_Text "Records not assignment compatible"
  460. #define HQLERR_MissingTemplateTerminator_Text "Missing end of placeholder"
  461. #define HQLERR_FailXUsedOutsideFailContext_Text "%s can only be globally or inside ONFAIL or other failure processing"
  462. #define HQLERR_GlobalSideEffectDependent_Text "Side-effect%s is not currently supported as a context-dependent dependency"
  463. #define HQLERR_AggregateNeedMergeTransform_Text "Cannot deduce MERGE transform for global AGGREGATE"
  464. #define HQLERR_AggregateMissingGroupingFields_Text "AGGREGATE does not include grouping field '%s' in the result record"
  465. #define HQLERR_MaximumRowSizeOverflow_Text "The calculated maximum row size has overflowed 32bits"
  466. #define HQLERR_OpArgDependsDataset_Text "%s: %s cannot be dependent on the dataset"
  467. #define HQLERR_CouldNotDetermineMinSize_Text "Cannot determine the minimum size of the expression"
  468. #define HQLERR_OutsideGroupAggregate_Text "%s used outside of a TABLE aggregation"
  469. #define HQLERR_ResourceAddAfterFinalManifest_Text "%s resource added after manifest was finalized"
  470. #define HQLERR_SkipInsideCreateRow_Text "SKIP inside a ROW(<transform>) not supported. It is only allowed in a DATASET transform."
  471. //Warnings.
  472. #define HQLWRN_CannotRecreateDistribution_Text "Cannot recreate the distribution for a persistent dataset"
  473. #define HQLWRN_RecursiveDependendencies_Text "Recursive filename dependency"
  474. #define HQLWRN_MaxSizeExceedsSafeLimit_Text "Maximum row size of %u exceeds the recommended maximum (%u)"
  475. #define HQLWRN_TomitaMatchPattern_Text "MATCHED(%s) will not work on a pattern"
  476. #define HQLWRN_KeyedFollowsGap_Text "keyed filter on %s follows unkeyed component %s in the key%s"
  477. #define HQLWRN_LocalHasNoEffect_Text "LOCAL(dataset) only has an effect in roxie and in thor child queries"
  478. #define HQLWRN_CsvMaxLengthMismatch_Text "CSV read: Max length of record (%d) exceeds the max length (%d) specified on the csv attribute"
  479. #define HQLWRN_KeyedFoldedToGap_Text "KEYED(%s) follows component %s which is always matched in the key%s"
  480. #define HQLWRN_FoldRemoveKeyed_Text "The key condition for field (%s) on key%s is always true"
  481. #define HQLWRN_GlobalDoesntSeemToBe_Text "Expression%s marked as global seems to be context dependent"
  482. #define HQLWRN_GroupedJoinIsLookupJoin_Text "JOIN(,GROUPED) is implemented as a MANY LOOKUP join. This may be inefficient in thor."
  483. #define HQLWRN_ImplicitJoinLimit_Text "Implicit LIMIT(%d) added to keyed join%s"
  484. #define HQLWRN_ImplicitReadLimit_Text "Neither LIMIT() nor CHOOSEN() supplied for index read on %s"
  485. #define HQLWRN_ImplicitReadAddLimit_Text "Implicit LIMIT(%d) added to index read %s"
  486. #define HQLWRN_LimitAlwaysExceeded_Text "Limit is always exceeded"
  487. #define HQLWRN_LimitAlwaysExceededX_Text "Limit '%s' is always exceeded"
  488. #define HQLWRN_KeyedLimitIsZero_Text "Keyed Limit(0) will fail if there are any records, is this intended?"
  489. #define HQLWRN_LimitIsZero_Text "Limit(0) will fail if there are any records, is this intended?"
  490. #define HQLWRN_MoxieNoBias_Text "Key will not work on moxie, because cannot deduce bias from variable width base file. Need to add an explicit BIAS."
  491. #define HQLWRN_ParseVeryLargeDefinition_Text "PARSE pattern generates a large definition (%d bytes)"
  492. #define HQLWRN_JoinConditionFoldedNowAll_Text "JOIN condition folded to constant, converting to an ALL join"
  493. #define HQLWRN_MergeBadSortOrder_Text "MERGE() cannot recreated implicit sort order"
  494. #define HQLWRN_OutputDependendOnScope_Text "OUTPUT(%s) appears to be context dependent - this may cause a dataset not active error"
  495. #define HQLWRN_OptionSetToLate_Text "#option ('%s') will have no effect - it needs to be set in the submitted workunit."
  496. #define HQLWRN_WorkflowSeemsToBeDependent_Text "Workflow item%s seems to be context dependent"
  497. #define HQLWRN_GlobalSideEffectDependent_Text "Global side-effect%s seems to be context dependent - it may not function as expected"
  498. #define HQLWRN_GrammarIsAmbiguous_Text "The PARSE pattern for activity %d is ambiguous. This may reduce the efficiency of the PARSE."
  499. #define HQLWRN_ComplexHelperClass_Text "Activity %d created a complex helper class (%d)"
  500. #define HQLWRN_GroupedGlobalFew_Text "Global few expression is grouped"
  501. #define HQLERR_OrderOnVarlengthStrings_Text "Rank/Ranked not supported on variable length strings"
  502. #define HQLERR_DistributionNoSequence_Text "DISTRIBUTION() only supported at the outer level"
  503. #define HQLERR_PhysicalJoinTooComplex_Text "Physical table join condition too complicated"
  504. #define HQLERR_ArbitaryRepeatUnimplemented_Text "Arbitrary repeats not yet supported!"
  505. #define HQLERR_TomitaNoUnicode_Text "Tomita doesn't yet support unicode"
  506. #define HQLERR_TomitaPatternTooComplex_Text "Patterns are too complicated for Tomita to handle at the moment [%s]"
  507. #define HQLERR_CannotCreateSizedChildDataset_Text "Cannot currently assign to DATASET(SIZEOF(x)) fields"
  508. #define HQLERR_OnlyNormalizeSimpleChildren_Text "Can only normalize simple child datasets - use other form if more complicated"
  509. #define HQLERR_RoxieLocalNotSupported_Text "ROXIE doesn't yet support local activities"
  510. #define HQLERR_ThorNotSupportStepping_Text "STEPPED is not currently supported by thor"
  511. #define HQLERR_StarRangeOnlyInJoinCondition_Text "string[n..*] syntax is only valid in a join condition"
  512. #define HQLERR_KeyedDistributeNoSubstringJoin_Text "Keyed distribute doesn' support join condition of the form field[n..*]"
  513. #define HQLERR_OnceCannotAccessStored_Text "ONCE workflow items cannot be dependent on other workflow items (including ONCE)"
  514. #define HQLERR_ThorCombineOnlyLocal_Text "Thor currently only supports the local version of COMBINE"
  515. #define HQLERR_NoClearOnLocalDataset_Text "INTERNAL: Clear not supported on LOCAL datasets"
  516. #define HQLERR_NoCreateLocalDataset_Text "INTERNAL: Local datasets cannot be created"
  517. #define HQLERR_TableOutsideThor_Text "INTERNAL: Attempt to access dataset outside of Thor"
  518. #define HQLERR_ExtraAssignInTransform_Text "INTERNAL: Not all Transform targets were assigned to [%s]"
  519. #define HQLERR_CannotAccessStoredVariable_Text "INTERNAL: Cannot access stored variable %s in this context"
  520. #define HQLERR_EvaluateTableNotInScope_Text "INTERNAL: Evaluate table is not in scope"
  521. #define HQLERR_FuncNotFound_Text "INTERNAL: Internal function %s not found"
  522. #define HQLERR_InternalOutputScalar_Text "INTERNAL: OUTPUT() on a scalar not processed correctly"
  523. #define HQLERR_DfaTooComplex_Text "INTERNAL: Expression too complex - cannot create a DFA"
  524. #define HQLERR_UnsupportedInlineQuery_Text "INTERNAL: Unsupported inline query"
  525. #define HQLERR_CouldNotResolveFileposition_Text "INTERNAL: Could not resolve file position"
  526. #define HQLERR_CastXNotImplemented_Text "INTERNAL: Cannot perform type cast from %s to %s"
  527. #define HQLERR_MatchedContextNotFound_Text "INTERNAL: Could not find context to evaluate match expression"
  528. #define HQLERR_BlobTranslationContextNotFound_Text "INTERNAL: Blob translation context not found"
  529. #define HQLERR_RowsUsedOutsideContext_Text "INTERNAL: ROWS can not be evaluated in this context"
  530. #define HQLERR_ExpectedParentContext_Text "INTERNAL: Expected a parent/container context. Likely to be caused by executing something invalid inside a NOTHOR."
  531. #define HQLERR_CounterNotFound_Text "INTERNAL: Could not resolve COUNTER for inline count project"
  532. #define HQLERR_GraphContextNotFound_Text "INTERNAL: Graph context not found"
  533. #define HQLERR_InvalidAcessStoredVariable_Text "INTERNAL: Accessing unserialized stored variable %s in slave context"
  534. #define HQLERR_LibraryNoWorkunitRead_Text "INTERNAL: Library '%s' shouldn't access work unit temporary '%s'"
  535. #define HQLERR_LibraryNoWorkunitWrite_Text "INTERNAL: Library '%s' shouldn't create work unit temporary '%s'"
  536. #define HQLERR_GraphInputAccessedChild_Text "INTERNAL: Attempting to access graph output directly from a child query"
  537. #define HQLERR_InconsisentLocalisation_Text "INTERNAL: Inconsistent activity localisation (child %d:graph %d)"
  538. #define HQLERR_NoParentExtract_Text "INTERNAL: No active parent extract - activity has incorrect localisation?"
  539. #define HQLERR_InconsistentNaryInput_Text "INTERNAL: Inputs to nary operation have inconsistent record structures"
  540. #define HQLERR_LinkedDatasetNoContext_Text "INTERNAL: Linked child rows required without legal context available"
  541. #define HQLERR_CannotGenerateSerializedCompare_Text "INTERNAL: Cannot generated serialized compare function"
  542. #define HQLERR_ReadSpillBeforeWrite_Text "INTERNAL: Attempt to read spill file %s before it is written"
  543. #define HQLERR_DependencyWithinGraph_Text "INTERNAL: Dependency within a graph incorrectly generated for hThor (%u)"
  544. #define HQLERR_UnknownCompoundAssign_Text "INTERNAL: Unrecognised compound assign %s"
  545. #define WARNINGAT(e, x) reportWarning(e, x, x##_Text)
  546. #define WARNINGAT1(e, x, a) reportWarning(e, x, x##_Text, a)
  547. #define WARNINGAT2(e, x, a, b) reportWarning(e, x, x##_Text, a, b)
  548. #define WARNINGAT3(e, x, a, b, c) reportWarning(e, x, x##_Text, a, b, c)
  549. #endif