duckdb 0.10.1-dev6.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (702) hide show
  1. package/.github/workflows/NodeJS.yml +11 -18
  2. package/binding.gyp +4 -1
  3. package/package.json +1 -1
  4. package/src/database.cpp +1 -0
  5. package/src/duckdb/extension/icu/icu-strptime.cpp +46 -4
  6. package/src/duckdb/extension/icu/icu-table-range.cpp +5 -0
  7. package/src/duckdb/extension/icu/icu-timezone.cpp +28 -4
  8. package/src/duckdb/extension/json/buffered_json_reader.cpp +6 -5
  9. package/src/duckdb/extension/json/include/buffered_json_reader.hpp +3 -3
  10. package/src/duckdb/extension/json/include/json_transform.hpp +2 -0
  11. package/src/duckdb/extension/json/json_functions/json_create.cpp +6 -0
  12. package/src/duckdb/extension/json/json_functions/json_transform.cpp +8 -9
  13. package/src/duckdb/extension/json/json_functions.cpp +1 -2
  14. package/src/duckdb/extension/json/json_scan.cpp +1 -0
  15. package/src/duckdb/extension/parquet/column_reader.cpp +17 -1
  16. package/src/duckdb/extension/parquet/column_writer.cpp +151 -20
  17. package/src/duckdb/extension/parquet/include/column_writer.hpp +3 -4
  18. package/src/duckdb/extension/parquet/parquet_extension.cpp +14 -9
  19. package/src/duckdb/extension/parquet/parquet_timestamp.cpp +10 -0
  20. package/src/duckdb/extension/parquet/parquet_writer.cpp +4 -0
  21. package/src/duckdb/src/catalog/catalog.cpp +94 -10
  22. package/src/duckdb/src/catalog/catalog_entry/duck_table_entry.cpp +9 -5
  23. package/src/duckdb/src/catalog/catalog_entry/table_catalog_entry.cpp +1 -0
  24. package/src/duckdb/src/catalog/catalog_entry/ub_duckdb_catalog_entries.cpp +16 -0
  25. package/src/duckdb/src/catalog/catalog_entry/view_catalog_entry.cpp +28 -0
  26. package/src/duckdb/src/catalog/default/default_functions.cpp +3 -0
  27. package/src/duckdb/src/catalog/default/default_views.cpp +3 -3
  28. package/src/duckdb/src/catalog/default/ub_duckdb_catalog_default_entries.cpp +5 -0
  29. package/src/duckdb/src/catalog/dependency_catalog_set.cpp +1 -3
  30. package/src/duckdb/src/catalog/dependency_manager.cpp +2 -5
  31. package/src/duckdb/src/catalog/ub_duckdb_catalog.cpp +10 -0
  32. package/src/duckdb/src/common/adbc/adbc.cpp +1 -1
  33. package/src/duckdb/src/common/adbc/driver_manager.cpp +2 -1
  34. package/src/duckdb/src/common/adbc/nanoarrow/ub_duckdb_adbc_nanoarrow.cpp +5 -0
  35. package/src/duckdb/src/common/adbc/ub_duckdb_adbc.cpp +3 -0
  36. package/src/duckdb/src/common/allocator.cpp +34 -8
  37. package/src/duckdb/src/common/arrow/appender/fixed_size_list_data.cpp +39 -0
  38. package/src/duckdb/src/common/arrow/appender/ub_duckdb_common_arrow_appender.cpp +6 -0
  39. package/src/duckdb/src/common/arrow/appender/union_data.cpp +2 -1
  40. package/src/duckdb/src/common/arrow/arrow_appender.cpp +5 -5
  41. package/src/duckdb/src/common/arrow/arrow_converter.cpp +17 -0
  42. package/src/duckdb/src/common/arrow/ub_duckdb_common_arrow.cpp +4 -0
  43. package/src/duckdb/src/common/compressed_file_system.cpp +1 -0
  44. package/src/duckdb/src/common/crypto/ub_duckdb_common_crypto.cpp +2 -0
  45. package/src/duckdb/src/common/enum_util.cpp +153 -13
  46. package/src/duckdb/src/common/enums/logical_operator_type.cpp +0 -2
  47. package/src/duckdb/src/common/enums/physical_operator_type.cpp +2 -2
  48. package/src/duckdb/src/common/enums/ub_duckdb_common_enums.cpp +12 -0
  49. package/src/duckdb/src/common/exception/conversion_exception.cpp +23 -0
  50. package/src/duckdb/src/common/exception.cpp +7 -14
  51. package/src/duckdb/src/common/extra_type_info.cpp +6 -5
  52. package/src/duckdb/src/common/gzip_file_system.cpp +5 -4
  53. package/src/duckdb/src/common/local_file_system.cpp +85 -10
  54. package/src/duckdb/src/common/operator/cast_operators.cpp +413 -305
  55. package/src/duckdb/src/common/operator/ub_duckdb_common_operators.cpp +4 -0
  56. package/src/duckdb/src/common/progress_bar/ub_duckdb_progress_bar.cpp +3 -0
  57. package/src/duckdb/src/common/re2_regex.cpp +2 -1
  58. package/src/duckdb/src/common/row_operations/row_heap_scatter.cpp +2 -2
  59. package/src/duckdb/src/common/row_operations/row_matcher.cpp +1 -0
  60. package/src/duckdb/src/common/row_operations/row_scatter.cpp +2 -2
  61. package/src/duckdb/src/common/row_operations/ub_duckdb_row_operations.cpp +9 -0
  62. package/src/duckdb/src/common/serializer/binary_serializer.cpp +3 -3
  63. package/src/duckdb/src/common/serializer/ub_duckdb_common_serializer.cpp +7 -0
  64. package/src/duckdb/src/common/sort/partition_state.cpp +2 -3
  65. package/src/duckdb/src/common/sort/ub_duckdb_sort.cpp +7 -0
  66. package/src/duckdb/src/common/string_util.cpp +3 -3
  67. package/src/duckdb/src/common/types/bit.cpp +7 -6
  68. package/src/duckdb/src/common/types/blob.cpp +20 -9
  69. package/src/duckdb/src/common/types/column/column_data_allocator.cpp +8 -6
  70. package/src/duckdb/src/common/types/column/column_data_collection.cpp +11 -1
  71. package/src/duckdb/src/common/types/column/column_data_collection_segment.cpp +5 -0
  72. package/src/duckdb/src/common/types/column/partitioned_column_data.cpp +1 -1
  73. package/src/duckdb/src/common/types/column/ub_duckdb_common_types_column.cpp +6 -0
  74. package/src/duckdb/src/common/types/data_chunk.cpp +1 -1
  75. package/src/duckdb/src/common/types/date.cpp +1 -1
  76. package/src/duckdb/src/common/types/hugeint.cpp +3 -2
  77. package/src/duckdb/src/common/types/interval.cpp +1 -1
  78. package/src/duckdb/src/common/types/list_segment.cpp +2 -1
  79. package/src/duckdb/src/common/types/row/partitioned_tuple_data.cpp +3 -9
  80. package/src/duckdb/src/common/types/row/tuple_data_allocator.cpp +7 -7
  81. package/src/duckdb/src/common/types/row/tuple_data_collection.cpp +10 -27
  82. package/src/duckdb/src/common/types/row/tuple_data_scatter_gather.cpp +168 -88
  83. package/src/duckdb/src/common/types/row/ub_duckdb_common_types_row.cpp +11 -0
  84. package/src/duckdb/src/common/types/selection_vector.cpp +1 -1
  85. package/src/duckdb/src/common/types/string_heap.cpp +5 -1
  86. package/src/duckdb/src/common/types/string_type.cpp +18 -4
  87. package/src/duckdb/src/common/types/time.cpp +4 -2
  88. package/src/duckdb/src/common/types/timestamp.cpp +32 -6
  89. package/src/duckdb/src/common/types/ub_duckdb_common_types.cpp +28 -0
  90. package/src/duckdb/src/common/types/uhugeint.cpp +3 -2
  91. package/src/duckdb/src/common/types/uuid.cpp +11 -0
  92. package/src/duckdb/src/common/types/validity_mask.cpp +4 -3
  93. package/src/duckdb/src/common/types/value.cpp +17 -6
  94. package/src/duckdb/src/common/types/vector.cpp +243 -68
  95. package/src/duckdb/src/common/types.cpp +7 -5
  96. package/src/duckdb/src/common/ub_duckdb_common.cpp +34 -0
  97. package/src/duckdb/src/common/value_operations/ub_duckdb_value_operations.cpp +2 -0
  98. package/src/duckdb/src/common/vector_operations/generators.cpp +2 -1
  99. package/src/duckdb/src/common/vector_operations/vector_cast.cpp +4 -4
  100. package/src/duckdb/src/common/vector_operations/vector_copy.cpp +2 -2
  101. package/src/duckdb/src/common/vector_operations/vector_hash.cpp +17 -6
  102. package/src/duckdb/src/core_functions/aggregate/algebraic/ub_duckdb_aggr_algebraic.cpp +5 -0
  103. package/src/duckdb/src/core_functions/aggregate/distributive/arg_min_max.cpp +30 -6
  104. package/src/duckdb/src/core_functions/aggregate/distributive/bitagg.cpp +1 -1
  105. package/src/duckdb/src/core_functions/aggregate/distributive/bitstring_agg.cpp +12 -5
  106. package/src/duckdb/src/core_functions/aggregate/distributive/minmax.cpp +2 -2
  107. package/src/duckdb/src/core_functions/aggregate/distributive/string_agg.cpp +2 -1
  108. package/src/duckdb/src/core_functions/aggregate/distributive/ub_duckdb_aggr_distributive.cpp +13 -0
  109. package/src/duckdb/src/core_functions/aggregate/holistic/mode.cpp +2 -1
  110. package/src/duckdb/src/core_functions/aggregate/holistic/quantile.cpp +2 -9
  111. package/src/duckdb/src/core_functions/aggregate/holistic/ub_duckdb_aggr_holistic.cpp +5 -0
  112. package/src/duckdb/src/core_functions/aggregate/nested/ub_duckdb_aggr_nested.cpp +3 -0
  113. package/src/duckdb/src/core_functions/aggregate/regression/ub_duckdb_aggr_regr.cpp +8 -0
  114. package/src/duckdb/src/core_functions/function_list.cpp +1 -0
  115. package/src/duckdb/src/core_functions/scalar/bit/bitstring.cpp +2 -2
  116. package/src/duckdb/src/core_functions/scalar/bit/ub_duckdb_func_bit.cpp +2 -0
  117. package/src/duckdb/src/core_functions/scalar/blob/ub_duckdb_func_blob.cpp +3 -0
  118. package/src/duckdb/src/core_functions/scalar/date/date_diff.cpp +8 -0
  119. package/src/duckdb/src/core_functions/scalar/date/date_part.cpp +22 -3
  120. package/src/duckdb/src/core_functions/scalar/date/make_date.cpp +29 -7
  121. package/src/duckdb/src/core_functions/scalar/date/to_interval.cpp +3 -1
  122. package/src/duckdb/src/core_functions/scalar/date/ub_duckdb_func_date.cpp +12 -0
  123. package/src/duckdb/src/core_functions/scalar/debug/ub_duckdb_func_debug.cpp +2 -0
  124. package/src/duckdb/src/core_functions/scalar/enum/ub_duckdb_func_enum.cpp +2 -0
  125. package/src/duckdb/src/core_functions/scalar/generic/ub_duckdb_func_generic.cpp +9 -0
  126. package/src/duckdb/src/core_functions/scalar/list/array_slice.cpp +12 -8
  127. package/src/duckdb/src/core_functions/scalar/list/list_aggregates.cpp +2 -1
  128. package/src/duckdb/src/core_functions/scalar/list/list_reduce.cpp +6 -5
  129. package/src/duckdb/src/core_functions/scalar/list/list_sort.cpp +5 -3
  130. package/src/duckdb/src/core_functions/scalar/list/list_value.cpp +28 -12
  131. package/src/duckdb/src/core_functions/scalar/list/ub_duckdb_func_list.cpp +11 -0
  132. package/src/duckdb/src/core_functions/scalar/map/map.cpp +129 -160
  133. package/src/duckdb/src/core_functions/scalar/map/ub_duckdb_func_map_nested.cpp +8 -0
  134. package/src/duckdb/src/core_functions/scalar/math/numeric.cpp +19 -16
  135. package/src/duckdb/src/core_functions/scalar/math/ub_duckdb_func_math.cpp +1 -0
  136. package/src/duckdb/src/core_functions/scalar/operators/bitwise.cpp +4 -4
  137. package/src/duckdb/src/core_functions/scalar/operators/ub_duckdb_func_ops.cpp +1 -0
  138. package/src/duckdb/src/core_functions/scalar/random/ub_duckdb_func_random.cpp +3 -0
  139. package/src/duckdb/src/core_functions/scalar/string/hex.cpp +2 -1
  140. package/src/duckdb/src/core_functions/scalar/string/pad.cpp +2 -2
  141. package/src/duckdb/src/core_functions/scalar/string/repeat.cpp +1 -1
  142. package/src/duckdb/src/core_functions/scalar/string/replace.cpp +1 -1
  143. package/src/duckdb/src/core_functions/scalar/string/string_split.cpp +2 -1
  144. package/src/duckdb/src/core_functions/scalar/string/translate.cpp +1 -1
  145. package/src/duckdb/src/core_functions/scalar/string/ub_duckdb_func_string.cpp +26 -0
  146. package/src/duckdb/src/core_functions/scalar/struct/ub_duckdb_func_struct.cpp +3 -0
  147. package/src/duckdb/src/core_functions/scalar/union/ub_duckdb_func_union.cpp +4 -0
  148. package/src/duckdb/src/core_functions/ub_duckdb_core_functions.cpp +3 -0
  149. package/src/duckdb/src/execution/adaptive_filter.cpp +1 -1
  150. package/src/duckdb/src/execution/aggregate_hashtable.cpp +1 -1
  151. package/src/duckdb/src/execution/column_binding_resolver.cpp +7 -1
  152. package/src/duckdb/src/execution/expression_executor/execute_case.cpp +2 -2
  153. package/src/duckdb/src/execution/expression_executor/execute_cast.cpp +2 -0
  154. package/src/duckdb/src/execution/expression_executor/execute_function.cpp +2 -2
  155. package/src/duckdb/src/execution/expression_executor/execute_operator.cpp +1 -1
  156. package/src/duckdb/src/execution/expression_executor/ub_duckdb_expression_executor.cpp +11 -0
  157. package/src/duckdb/src/execution/expression_executor.cpp +5 -2
  158. package/src/duckdb/src/execution/index/art/art.cpp +12 -6
  159. package/src/duckdb/src/execution/index/art/art_key.cpp +3 -3
  160. package/src/duckdb/src/execution/index/art/leaf.cpp +2 -2
  161. package/src/duckdb/src/execution/index/art/node16.cpp +2 -2
  162. package/src/duckdb/src/execution/index/art/node256.cpp +3 -3
  163. package/src/duckdb/src/execution/index/art/node48.cpp +5 -5
  164. package/src/duckdb/src/execution/index/art/prefix.cpp +1 -1
  165. package/src/duckdb/src/execution/index/art/ub_duckdb_art_index_execution.cpp +12 -0
  166. package/src/duckdb/src/execution/index/art/ub_duckdb_execution_index_art.cpp +11 -0
  167. package/src/duckdb/src/execution/index/fixed_size_buffer.cpp +6 -5
  168. package/src/duckdb/src/execution/index/ub_duckdb_execution_index.cpp +3 -0
  169. package/src/duckdb/src/execution/nested_loop_join/ub_duckdb_nested_loop_join.cpp +3 -0
  170. package/src/duckdb/src/execution/operator/aggregate/aggregate_object.cpp +1 -1
  171. package/src/duckdb/src/execution/operator/aggregate/physical_hash_aggregate.cpp +3 -4
  172. package/src/duckdb/src/execution/operator/aggregate/physical_streaming_window.cpp +0 -1
  173. package/src/duckdb/src/execution/operator/aggregate/physical_ungrouped_aggregate.cpp +3 -4
  174. package/src/duckdb/src/execution/operator/aggregate/ub_duckdb_operator_aggregate.cpp +9 -0
  175. package/src/duckdb/src/execution/operator/csv_scanner/buffer_manager/csv_buffer.cpp +1 -1
  176. package/src/duckdb/src/execution/operator/csv_scanner/buffer_manager/csv_buffer_manager.cpp +8 -3
  177. package/src/duckdb/src/execution/operator/csv_scanner/buffer_manager/csv_file_handle.cpp +1 -1
  178. package/src/duckdb/src/execution/operator/csv_scanner/scanner/base_scanner.cpp +5 -5
  179. package/src/duckdb/src/execution/operator/csv_scanner/scanner/column_count_scanner.cpp +2 -3
  180. package/src/duckdb/src/execution/operator/csv_scanner/scanner/scanner_boundary.cpp +5 -1
  181. package/src/duckdb/src/execution/operator/csv_scanner/scanner/skip_scanner.cpp +2 -2
  182. package/src/duckdb/src/execution/operator/csv_scanner/scanner/string_value_scanner.cpp +151 -79
  183. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/csv_sniffer.cpp +11 -6
  184. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/dialect_detection.cpp +27 -6
  185. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/header_detection.cpp +71 -18
  186. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_detection.cpp +22 -11
  187. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_refinement.cpp +6 -4
  188. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_replacement.cpp +5 -3
  189. package/src/duckdb/src/execution/operator/csv_scanner/sniffer/ub_duckdb_operator_csv_sniffer.cpp +7 -0
  190. package/src/duckdb/src/execution/operator/csv_scanner/state_machine/csv_state_machine.cpp +3 -3
  191. package/src/duckdb/src/execution/operator/csv_scanner/state_machine/csv_state_machine_cache.cpp +30 -5
  192. package/src/duckdb/src/execution/operator/csv_scanner/table_function/csv_file_scanner.cpp +6 -2
  193. package/src/duckdb/src/execution/operator/csv_scanner/table_function/global_csv_state.cpp +47 -46
  194. package/src/duckdb/src/execution/operator/csv_scanner/ub_duckdb_operator_csv_scanner.cpp +10 -0
  195. package/src/duckdb/src/execution/operator/csv_scanner/util/csv_error.cpp +102 -54
  196. package/src/duckdb/src/execution/operator/csv_scanner/util/csv_reader_options.cpp +8 -1
  197. package/src/duckdb/src/execution/operator/filter/ub_duckdb_operator_filter.cpp +2 -0
  198. package/src/duckdb/src/execution/operator/helper/physical_limit.cpp +54 -36
  199. package/src/duckdb/src/execution/operator/helper/physical_limit_percent.cpp +56 -32
  200. package/src/duckdb/src/execution/operator/helper/physical_streaming_limit.cpp +9 -13
  201. package/src/duckdb/src/execution/operator/helper/physical_transaction.cpp +12 -0
  202. package/src/duckdb/src/execution/operator/helper/physical_verify_vector.cpp +221 -0
  203. package/src/duckdb/src/execution/operator/helper/ub_duckdb_operator_helper.cpp +18 -0
  204. package/src/duckdb/src/execution/operator/join/physical_asof_join.cpp +1 -0
  205. package/src/duckdb/src/execution/operator/join/physical_hash_join.cpp +23 -8
  206. package/src/duckdb/src/execution/operator/join/physical_range_join.cpp +8 -3
  207. package/src/duckdb/src/execution/operator/join/ub_duckdb_operator_join.cpp +16 -0
  208. package/src/duckdb/src/execution/operator/order/physical_order.cpp +2 -3
  209. package/src/duckdb/src/execution/operator/order/physical_top_n.cpp +2 -7
  210. package/src/duckdb/src/execution/operator/order/ub_duckdb_operator_order.cpp +3 -0
  211. package/src/duckdb/src/execution/operator/persistent/physical_batch_copy_to_file.cpp +451 -55
  212. package/src/duckdb/src/execution/operator/persistent/physical_batch_insert.cpp +312 -150
  213. package/src/duckdb/src/execution/operator/persistent/physical_copy_to_file.cpp +200 -75
  214. package/src/duckdb/src/execution/operator/persistent/physical_delete.cpp +1 -0
  215. package/src/duckdb/src/execution/operator/persistent/physical_insert.cpp +6 -5
  216. package/src/duckdb/src/execution/operator/persistent/ub_duckdb_operator_persistent.cpp +10 -0
  217. package/src/duckdb/src/execution/operator/projection/physical_pivot.cpp +3 -2
  218. package/src/duckdb/src/execution/operator/projection/ub_duckdb_operator_projection.cpp +5 -0
  219. package/src/duckdb/src/execution/operator/scan/ub_duckdb_operator_scan.cpp +7 -0
  220. package/src/duckdb/src/execution/operator/schema/ub_duckdb_operator_schema.cpp +12 -0
  221. package/src/duckdb/src/execution/operator/set/physical_recursive_cte.cpp +25 -0
  222. package/src/duckdb/src/execution/operator/set/ub_duckdb_operator_set.cpp +4 -0
  223. package/src/duckdb/src/execution/perfect_aggregate_hashtable.cpp +4 -4
  224. package/src/duckdb/src/execution/physical_plan/plan_aggregate.cpp +2 -2
  225. package/src/duckdb/src/execution/physical_plan/plan_comparison_join.cpp +2 -2
  226. package/src/duckdb/src/execution/physical_plan/plan_copy_to_file.cpp +7 -17
  227. package/src/duckdb/src/execution/physical_plan/plan_distinct.cpp +10 -0
  228. package/src/duckdb/src/execution/physical_plan/plan_insert.cpp +7 -0
  229. package/src/duckdb/src/execution/physical_plan/plan_limit.cpp +45 -13
  230. package/src/duckdb/src/execution/physical_plan/ub_duckdb_physical_plan.cpp +44 -0
  231. package/src/duckdb/src/execution/physical_plan_generator.cpp +5 -3
  232. package/src/duckdb/src/execution/radix_partitioned_hashtable.cpp +13 -12
  233. package/src/duckdb/src/execution/ub_duckdb_execution.cpp +15 -0
  234. package/src/duckdb/src/execution/window_executor.cpp +71 -61
  235. package/src/duckdb/src/execution/window_segment_tree.cpp +6 -6
  236. package/src/duckdb/src/extension_forward_decl/icu.cpp +59 -0
  237. package/src/duckdb/src/function/aggregate/algebraic/ub_duckdb_aggr_algebraic.cpp +5 -0
  238. package/src/duckdb/src/function/aggregate/distributive/first.cpp +2 -2
  239. package/src/duckdb/src/function/aggregate/distributive/ub_duckdb_aggr_distr.cpp +3 -0
  240. package/src/duckdb/src/function/aggregate/holistic/ub_duckdb_aggr_holistic.cpp +5 -0
  241. package/src/duckdb/src/function/aggregate/nested/ub_duckdb_aggr_nested.cpp +3 -0
  242. package/src/duckdb/src/function/aggregate/regression/ub_duckdb_aggr_regr.cpp +8 -0
  243. package/src/duckdb/src/function/aggregate/sorted_aggregate_function.cpp +3 -2
  244. package/src/duckdb/src/function/aggregate/ub_duckdb_func_aggr.cpp +3 -0
  245. package/src/duckdb/src/function/cast/array_casts.cpp +2 -4
  246. package/src/duckdb/src/function/cast/bit_cast.cpp +13 -13
  247. package/src/duckdb/src/function/cast/cast_function_set.cpp +2 -0
  248. package/src/duckdb/src/function/cast/decimal_cast.cpp +38 -44
  249. package/src/duckdb/src/function/cast/default_casts.cpp +5 -2
  250. package/src/duckdb/src/function/cast/enum_casts.cpp +5 -5
  251. package/src/duckdb/src/function/cast/list_casts.cpp +24 -14
  252. package/src/duckdb/src/function/cast/string_cast.cpp +48 -30
  253. package/src/duckdb/src/function/cast/struct_cast.cpp +2 -2
  254. package/src/duckdb/src/function/cast/time_casts.cpp +12 -0
  255. package/src/duckdb/src/function/cast/ub_duckdb_func_cast.cpp +17 -0
  256. package/src/duckdb/src/function/cast/union/ub_duckdb_union_cast.cpp +2 -0
  257. package/src/duckdb/src/function/cast/union_casts.cpp +13 -15
  258. package/src/duckdb/src/function/cast/vector_cast_helpers.cpp +1 -1
  259. package/src/duckdb/src/function/cast_rules.cpp +2 -1
  260. package/src/duckdb/src/function/pragma/ub_duckdb_func_pragma.cpp +3 -0
  261. package/src/duckdb/src/function/scalar/bit/ub_duckdb_func_bit.cpp +2 -0
  262. package/src/duckdb/src/function/scalar/blob/ub_duckdb_func_blob.cpp +3 -0
  263. package/src/duckdb/src/function/scalar/compressed_materialization/compress_integral.cpp +7 -6
  264. package/src/duckdb/src/function/scalar/compressed_materialization/compress_string.cpp +3 -3
  265. package/src/duckdb/src/function/scalar/compressed_materialization/ub_duckdb_func_compressed_materialization.cpp +3 -0
  266. package/src/duckdb/src/function/scalar/date/ub_duckdb_func_date.cpp +12 -0
  267. package/src/duckdb/src/function/scalar/enum/ub_duckdb_func_enum.cpp +2 -0
  268. package/src/duckdb/src/function/scalar/generic/ub_duckdb_func_generic.cpp +8 -0
  269. package/src/duckdb/src/function/scalar/generic/ub_duckdb_func_generic_main.cpp +2 -0
  270. package/src/duckdb/src/function/scalar/list/list_resize.cpp +3 -1
  271. package/src/duckdb/src/function/scalar/list/list_zip.cpp +3 -4
  272. package/src/duckdb/src/function/scalar/list/ub_duckdb_func_list.cpp +11 -0
  273. package/src/duckdb/src/function/scalar/list/ub_duckdb_func_list_nested.cpp +5 -0
  274. package/src/duckdb/src/function/scalar/map/ub_duckdb_func_map_nested.cpp +7 -0
  275. package/src/duckdb/src/function/scalar/math/ub_duckdb_func_math.cpp +4 -0
  276. package/src/duckdb/src/function/scalar/nested_functions.cpp +7 -3
  277. package/src/duckdb/src/function/scalar/operators/arithmetic.cpp +1 -1
  278. package/src/duckdb/src/function/scalar/operators/multiply.cpp +4 -2
  279. package/src/duckdb/src/function/scalar/operators/subtract.cpp +9 -3
  280. package/src/duckdb/src/function/scalar/operators/ub_duckdb_func_ops.cpp +6 -0
  281. package/src/duckdb/src/function/scalar/operators/ub_duckdb_func_ops_main.cpp +5 -0
  282. package/src/duckdb/src/function/scalar/sequence/ub_duckdb_func_seq.cpp +2 -0
  283. package/src/duckdb/src/function/scalar/strftime_format.cpp +21 -20
  284. package/src/duckdb/src/function/scalar/string/like.cpp +14 -3
  285. package/src/duckdb/src/function/scalar/string/regexp/regexp_extract_all.cpp +4 -2
  286. package/src/duckdb/src/function/scalar/string/regexp/ub_duckdb_func_string_regexp.cpp +3 -0
  287. package/src/duckdb/src/function/scalar/string/regexp.cpp +6 -4
  288. package/src/duckdb/src/function/scalar/string/suffix.cpp +1 -1
  289. package/src/duckdb/src/function/scalar/string/ub_duckdb_func_string.cpp +31 -0
  290. package/src/duckdb/src/function/scalar/string/ub_duckdb_func_string_main.cpp +12 -0
  291. package/src/duckdb/src/function/scalar/struct/ub_duckdb_func_struct.cpp +4 -0
  292. package/src/duckdb/src/function/scalar/struct/ub_duckdb_func_struct_main.cpp +2 -0
  293. package/src/duckdb/src/function/scalar/system/ub_duckdb_func_system.cpp +2 -0
  294. package/src/duckdb/src/function/scalar/ub_duckdb_func_scalar.cpp +9 -0
  295. package/src/duckdb/src/function/scalar/union/ub_duckdb_func_union.cpp +4 -0
  296. package/src/duckdb/src/function/table/arrow/arrow_array_scan_state.cpp +28 -2
  297. package/src/duckdb/src/function/table/arrow/ub_duckdb_arrow_conversion.cpp +2 -0
  298. package/src/duckdb/src/function/table/arrow.cpp +23 -6
  299. package/src/duckdb/src/function/table/arrow_conversion.cpp +75 -33
  300. package/src/duckdb/src/function/table/copy_csv.cpp +8 -3
  301. package/src/duckdb/src/function/table/range.cpp +5 -0
  302. package/src/duckdb/src/function/table/read_csv.cpp +9 -8
  303. package/src/duckdb/src/function/table/read_file.cpp +1 -1
  304. package/src/duckdb/src/function/table/sniff_csv.cpp +5 -5
  305. package/src/duckdb/src/function/table/system/duckdb_columns.cpp +6 -2
  306. package/src/duckdb/src/function/table/system/duckdb_secrets.cpp +5 -1
  307. package/src/duckdb/src/function/table/system/duckdb_sequences.cpp +3 -1
  308. package/src/duckdb/src/function/table/system/duckdb_settings.cpp +13 -1
  309. package/src/duckdb/src/function/table/system/test_all_types.cpp +64 -0
  310. package/src/duckdb/src/function/table/system/ub_duckdb_table_func_system.cpp +23 -0
  311. package/src/duckdb/src/function/table/ub_duckdb_func_table.cpp +16 -0
  312. package/src/duckdb/src/function/table/version/pragma_version.cpp +11 -2
  313. package/src/duckdb/src/function/table/version/ub_duckdb_func_table_version.cpp +2 -0
  314. package/src/duckdb/src/function/ub_duckdb_function.cpp +14 -0
  315. package/src/duckdb/src/include/duckdb/catalog/catalog.hpp +11 -1
  316. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/view_catalog_entry.hpp +2 -0
  317. package/src/duckdb/src/include/duckdb/catalog/catalog_entry.hpp +1 -1
  318. package/src/duckdb/src/include/duckdb/common/allocator.hpp +8 -11
  319. package/src/duckdb/src/include/duckdb/common/arrow/appender/enum_data.hpp +2 -2
  320. package/src/duckdb/src/include/duckdb/common/arrow/appender/fixed_size_list_data.hpp +14 -0
  321. package/src/duckdb/src/include/duckdb/common/arrow/appender/list.hpp +1 -0
  322. package/src/duckdb/src/include/duckdb/common/arrow/appender/list_data.hpp +1 -1
  323. package/src/duckdb/src/include/duckdb/common/arrow/appender/varchar_data.hpp +2 -2
  324. package/src/duckdb/src/include/duckdb/common/bitpacking.hpp +2 -2
  325. package/src/duckdb/src/include/duckdb/common/bswap.hpp +6 -2
  326. package/src/duckdb/src/include/duckdb/common/enum_util.hpp +32 -0
  327. package/src/duckdb/src/include/duckdb/common/enums/catalog_lookup_behavior.hpp +21 -0
  328. package/src/duckdb/src/include/duckdb/common/enums/logical_operator_type.hpp +0 -1
  329. package/src/duckdb/src/include/duckdb/common/enums/physical_operator_type.hpp +1 -1
  330. package/src/duckdb/src/include/duckdb/common/enums/prepared_statement_mode.hpp +20 -0
  331. package/src/duckdb/src/include/duckdb/common/enums/statement_type.hpp +2 -0
  332. package/src/duckdb/src/include/duckdb/common/exception/conversion_exception.hpp +6 -0
  333. package/src/duckdb/src/include/duckdb/common/exception/parser_exception.hpp +4 -0
  334. package/src/duckdb/src/include/duckdb/common/exception.hpp +2 -0
  335. package/src/duckdb/src/include/duckdb/common/extra_type_info.hpp +3 -3
  336. package/src/duckdb/src/include/duckdb/common/file_opener.hpp +6 -5
  337. package/src/duckdb/src/include/duckdb/common/file_system.hpp +4 -2
  338. package/src/duckdb/src/include/duckdb/common/helper.hpp +7 -0
  339. package/src/duckdb/src/include/duckdb/common/limits.hpp +2 -2
  340. package/src/duckdb/src/include/duckdb/common/local_file_system.hpp +3 -0
  341. package/src/duckdb/src/include/duckdb/common/numeric_utils.hpp +64 -0
  342. package/src/duckdb/src/include/duckdb/common/operator/cast_operators.hpp +34 -33
  343. package/src/duckdb/src/include/duckdb/common/operator/decimal_cast_operators.hpp +150 -124
  344. package/src/duckdb/src/include/duckdb/common/operator/integer_cast_operator.hpp +5 -5
  345. package/src/duckdb/src/include/duckdb/common/radix.hpp +1 -1
  346. package/src/duckdb/src/include/duckdb/common/serializer/deserializer.hpp +1 -1
  347. package/src/duckdb/src/include/duckdb/common/sort/duckdb_pdqsort.hpp +4 -4
  348. package/src/duckdb/src/include/duckdb/common/types/bit.hpp +1 -1
  349. package/src/duckdb/src/include/duckdb/common/types/blob.hpp +4 -1
  350. package/src/duckdb/src/include/duckdb/common/types/cast_helpers.hpp +15 -13
  351. package/src/duckdb/src/include/duckdb/common/types/column/column_data_allocator.hpp +5 -0
  352. package/src/duckdb/src/include/duckdb/common/types/column/column_data_collection.hpp +2 -0
  353. package/src/duckdb/src/include/duckdb/common/types/column/column_data_collection_segment.hpp +3 -0
  354. package/src/duckdb/src/include/duckdb/common/types/column/partitioned_column_data.hpp +1 -1
  355. package/src/duckdb/src/include/duckdb/common/types/row/partitioned_tuple_data.hpp +1 -1
  356. package/src/duckdb/src/include/duckdb/common/types/row/tuple_data_states.hpp +4 -1
  357. package/src/duckdb/src/include/duckdb/common/types/selection_vector.hpp +2 -1
  358. package/src/duckdb/src/include/duckdb/common/types/string_heap.hpp +2 -0
  359. package/src/duckdb/src/include/duckdb/common/types/string_type.hpp +11 -4
  360. package/src/duckdb/src/include/duckdb/common/types/time.hpp +1 -1
  361. package/src/duckdb/src/include/duckdb/common/types/timestamp.hpp +7 -2
  362. package/src/duckdb/src/include/duckdb/common/types/uuid.hpp +3 -0
  363. package/src/duckdb/src/include/duckdb/common/types/value.hpp +7 -0
  364. package/src/duckdb/src/include/duckdb/common/types/vector.hpp +40 -7
  365. package/src/duckdb/src/include/duckdb/common/types/vector_buffer.hpp +1 -1
  366. package/src/duckdb/src/include/duckdb/common/types.hpp +1 -1
  367. package/src/duckdb/src/include/duckdb/common/vector_operations/general_cast.hpp +12 -4
  368. package/src/duckdb/src/include/duckdb/common/vector_operations/generic_executor.hpp +6 -6
  369. package/src/duckdb/src/include/duckdb/common/vector_operations/vector_operations.hpp +3 -2
  370. package/src/duckdb/src/include/duckdb/common/windows_undefs.hpp +4 -0
  371. package/src/duckdb/src/include/duckdb/core_functions/aggregate/regression/regr_count.hpp +1 -1
  372. package/src/duckdb/src/include/duckdb/core_functions/scalar/list_functions.hpp +9 -0
  373. package/src/duckdb/src/include/duckdb/execution/column_binding_resolver.hpp +2 -1
  374. package/src/duckdb/src/include/duckdb/execution/executor.hpp +10 -0
  375. package/src/duckdb/src/include/duckdb/execution/expression_executor_state.hpp +1 -1
  376. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/base_scanner.hpp +262 -0
  377. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/column_count_scanner.hpp +70 -0
  378. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_buffer.hpp +103 -0
  379. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_buffer_manager.hpp +74 -0
  380. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_casting.hpp +154 -0
  381. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_error.hpp +130 -0
  382. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_file_handle.hpp +60 -0
  383. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_file_scanner.hpp +70 -0
  384. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_option.hpp +155 -0
  385. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_reader_options.hpp +166 -0
  386. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_sniffer.hpp +191 -0
  387. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_state.hpp +30 -0
  388. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_state_machine.hpp +99 -0
  389. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_state_machine_cache.hpp +91 -0
  390. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/global_csv_state.hpp +80 -0
  391. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/quote_rules.hpp +21 -0
  392. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/scanner_boundary.hpp +93 -0
  393. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/skip_scanner.hpp +60 -0
  394. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/state_machine_options.hpp +35 -0
  395. package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/string_value_scanner.hpp +200 -0
  396. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_limit.hpp +13 -10
  397. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_limit_percent.hpp +5 -11
  398. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_streaming_limit.hpp +4 -6
  399. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_verify_vector.hpp +51 -0
  400. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_hash_join.hpp +3 -0
  401. package/src/duckdb/src/include/duckdb/execution/operator/persistent/batch_memory_manager.hpp +165 -0
  402. package/src/duckdb/src/include/duckdb/execution/operator/persistent/batch_task_manager.hpp +48 -0
  403. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_batch_copy_to_file.hpp +10 -17
  404. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_batch_insert.hpp +4 -0
  405. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_copy_to_file.hpp +2 -0
  406. package/src/duckdb/src/include/duckdb/execution/physical_operator_states.hpp +10 -6
  407. package/src/duckdb/src/include/duckdb/execution/physical_plan_generator.hpp +0 -2
  408. package/src/duckdb/src/include/duckdb/execution/window_executor.hpp +2 -1
  409. package/src/duckdb/src/include/duckdb/execution/window_segment_tree.hpp +1 -1
  410. package/src/duckdb/src/include/duckdb/function/cast/cast_function_set.hpp +1 -0
  411. package/src/duckdb/src/include/duckdb/function/cast/default_casts.hpp +14 -5
  412. package/src/duckdb/src/include/duckdb/function/cast/vector_cast_helpers.hpp +27 -43
  413. package/src/duckdb/src/include/duckdb/function/compression_function.hpp +4 -4
  414. package/src/duckdb/src/include/duckdb/function/copy_function.hpp +3 -3
  415. package/src/duckdb/src/include/duckdb/function/function.hpp +1 -1
  416. package/src/duckdb/src/include/duckdb/function/scalar/list/contains_or_position.hpp +1 -0
  417. package/src/duckdb/src/include/duckdb/function/scalar/nested_functions.hpp +1 -1
  418. package/src/duckdb/src/include/duckdb/function/scalar_function.hpp +1 -1
  419. package/src/duckdb/src/include/duckdb/function/table/arrow.hpp +10 -4
  420. package/src/duckdb/src/include/duckdb/function/table/read_csv.hpp +8 -6
  421. package/src/duckdb/src/include/duckdb/function/table_function.hpp +3 -3
  422. package/src/duckdb/src/include/duckdb/main/attached_database.hpp +3 -0
  423. package/src/duckdb/src/include/duckdb/main/capi/cast/from_decimal.hpp +6 -4
  424. package/src/duckdb/src/include/duckdb/main/capi/cast/to_decimal.hpp +17 -10
  425. package/src/duckdb/src/include/duckdb/main/client_config.hpp +2 -0
  426. package/src/duckdb/src/include/duckdb/main/client_context.hpp +17 -3
  427. package/src/duckdb/src/include/duckdb/main/client_context_file_opener.hpp +2 -2
  428. package/src/duckdb/src/include/duckdb/main/client_context_state.hpp +20 -0
  429. package/src/duckdb/src/include/duckdb/main/client_data.hpp +1 -1
  430. package/src/duckdb/src/include/duckdb/main/database.hpp +3 -2
  431. package/src/duckdb/src/include/duckdb/main/database_manager.hpp +2 -1
  432. package/src/duckdb/src/include/duckdb/main/extension/generated_extension_loader.hpp +1 -1
  433. package/src/duckdb/src/include/duckdb/main/extension_entries.hpp +230 -199
  434. package/src/duckdb/src/include/duckdb/main/extension_helper.hpp +18 -0
  435. package/src/duckdb/src/include/duckdb/main/relation/read_csv_relation.hpp +1 -1
  436. package/src/duckdb/src/include/duckdb/main/relation/table_function_relation.hpp +2 -0
  437. package/src/duckdb/src/include/duckdb/main/relation.hpp +1 -1
  438. package/src/duckdb/src/include/duckdb/main/secret/secret_manager.hpp +4 -0
  439. package/src/duckdb/src/include/duckdb/main/settings.hpp +54 -10
  440. package/src/duckdb/src/include/duckdb/optimizer/join_order/relation_manager.hpp +2 -1
  441. package/src/duckdb/src/include/duckdb/optimizer/rule/ordered_aggregate_optimizer.hpp +2 -0
  442. package/src/duckdb/src/include/duckdb/parallel/concurrentqueue.hpp +21 -5
  443. package/src/duckdb/src/include/duckdb/parallel/event.hpp +1 -1
  444. package/src/duckdb/src/include/duckdb/parallel/executor_task.hpp +37 -0
  445. package/src/duckdb/src/include/duckdb/parallel/interrupt.hpp +1 -1
  446. package/src/duckdb/src/include/duckdb/parallel/pipeline.hpp +1 -1
  447. package/src/duckdb/src/include/duckdb/parallel/task.hpp +0 -20
  448. package/src/duckdb/src/include/duckdb/parallel/task_scheduler.hpp +4 -2
  449. package/src/duckdb/src/include/duckdb/parser/expression/window_expression.hpp +10 -0
  450. package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_info.hpp +2 -1
  451. package/src/duckdb/src/include/duckdb/parser/parsed_data/alter_table_info.hpp +0 -24
  452. package/src/duckdb/src/include/duckdb/parser/parsed_data/comment_on_column_info.hpp +46 -0
  453. package/src/duckdb/src/include/duckdb/parser/parsed_data/create_view_info.hpp +2 -0
  454. package/src/duckdb/src/include/duckdb/parser/parsed_data/extra_drop_info.hpp +1 -1
  455. package/src/duckdb/src/include/duckdb/parser/parsed_data/parse_info.hpp +3 -2
  456. package/src/duckdb/src/include/duckdb/parser/tableref/pivotref.hpp +3 -3
  457. package/src/duckdb/src/include/duckdb/parser/transformer.hpp +3 -3
  458. package/src/duckdb/src/include/duckdb/planner/binder.hpp +11 -4
  459. package/src/duckdb/src/include/duckdb/planner/bound_result_modifier.hpp +59 -23
  460. package/src/duckdb/src/include/duckdb/planner/expression.hpp +1 -0
  461. package/src/duckdb/src/include/duckdb/planner/expression_binder/column_alias_binder.hpp +2 -2
  462. package/src/duckdb/src/include/duckdb/planner/expression_iterator.hpp +11 -3
  463. package/src/duckdb/src/include/duckdb/planner/extension_callback.hpp +6 -0
  464. package/src/duckdb/src/include/duckdb/planner/operator/list.hpp +0 -1
  465. package/src/duckdb/src/include/duckdb/planner/operator/logical_insert.hpp +1 -1
  466. package/src/duckdb/src/include/duckdb/planner/operator/logical_limit.hpp +5 -9
  467. package/src/duckdb/src/include/duckdb/planner/subquery/rewrite_correlated_expressions.hpp +0 -15
  468. package/src/duckdb/src/include/duckdb/storage/arena_allocator.hpp +5 -0
  469. package/src/duckdb/src/include/duckdb/storage/buffer/buffer_pool.hpp +40 -5
  470. package/src/duckdb/src/include/duckdb/storage/compression/alp/algorithm/alp.hpp +1 -1
  471. package/src/duckdb/src/include/duckdb/storage/compression/alp/alp_analyze.hpp +5 -1
  472. package/src/duckdb/src/include/duckdb/storage/compression/alp/alp_compress.hpp +4 -4
  473. package/src/duckdb/src/include/duckdb/storage/compression/alp/alp_utils.hpp +2 -1
  474. package/src/duckdb/src/include/duckdb/storage/compression/alprd/algorithm/alprd.hpp +10 -8
  475. package/src/duckdb/src/include/duckdb/storage/compression/alprd/alprd_analyze.hpp +5 -1
  476. package/src/duckdb/src/include/duckdb/storage/compression/alprd/alprd_compress.hpp +3 -3
  477. package/src/duckdb/src/include/duckdb/storage/compression/chimp/algorithm/bit_reader.hpp +11 -10
  478. package/src/duckdb/src/include/duckdb/storage/compression/chimp/algorithm/bit_utils.hpp +3 -1
  479. package/src/duckdb/src/include/duckdb/storage/compression/chimp/algorithm/chimp128.hpp +1 -1
  480. package/src/duckdb/src/include/duckdb/storage/compression/chimp/algorithm/leading_zero_buffer.hpp +5 -3
  481. package/src/duckdb/src/include/duckdb/storage/compression/chimp/chimp_scan.hpp +2 -1
  482. package/src/duckdb/src/include/duckdb/storage/data_pointer.hpp +1 -1
  483. package/src/duckdb/src/include/duckdb/storage/data_table.hpp +3 -1
  484. package/src/duckdb/src/include/duckdb/storage/index.hpp +1 -1
  485. package/src/duckdb/src/include/duckdb/storage/partial_block_manager.hpp +1 -1
  486. package/src/duckdb/src/include/duckdb/storage/standard_buffer_manager.hpp +3 -0
  487. package/src/duckdb/src/include/duckdb/storage/storage_manager.hpp +1 -1
  488. package/src/duckdb/src/include/duckdb/storage/table/append_state.hpp +0 -2
  489. package/src/duckdb/src/include/duckdb/storage/table/column_checkpoint_state.hpp +1 -1
  490. package/src/duckdb/src/include/duckdb/storage/table/column_data.hpp +5 -3
  491. package/src/duckdb/src/include/duckdb/storage/table/column_segment.hpp +2 -2
  492. package/src/duckdb/src/include/duckdb/storage/table/row_group.hpp +5 -0
  493. package/src/duckdb/src/include/duckdb/storage/table/row_group_collection.hpp +9 -2
  494. package/src/duckdb/src/include/duckdb/storage/table/scan_state.hpp +2 -6
  495. package/src/duckdb/src/include/duckdb/storage/table/segment_tree.hpp +3 -3
  496. package/src/duckdb/src/include/duckdb/storage/temporary_file_manager.hpp +169 -0
  497. package/src/duckdb/src/include/duckdb/transaction/duck_transaction_manager.hpp +11 -1
  498. package/src/duckdb/src/include/duckdb/transaction/meta_transaction.hpp +6 -1
  499. package/src/duckdb/src/include/duckdb/transaction/transaction.hpp +1 -1
  500. package/src/duckdb/src/include/duckdb.h +119 -67
  501. package/src/duckdb/src/main/appender.cpp +2 -1
  502. package/src/duckdb/src/main/attached_database.cpp +49 -27
  503. package/src/duckdb/src/main/capi/appender-c.cpp +1 -1
  504. package/src/duckdb/src/main/capi/cast/ub_duckdb_main_capi_cast.cpp +3 -0
  505. package/src/duckdb/src/main/capi/cast/utils-c.cpp +1 -1
  506. package/src/duckdb/src/main/capi/data_chunk-c.cpp +9 -1
  507. package/src/duckdb/src/main/capi/datetime-c.cpp +14 -8
  508. package/src/duckdb/src/main/capi/duckdb_value-c.cpp +29 -2
  509. package/src/duckdb/src/main/capi/helper-c.cpp +2 -0
  510. package/src/duckdb/src/main/capi/hugeint-c.cpp +2 -1
  511. package/src/duckdb/src/main/capi/logical_types-c.cpp +35 -1
  512. package/src/duckdb/src/main/capi/result-c.cpp +9 -0
  513. package/src/duckdb/src/main/capi/ub_duckdb_main_capi.cpp +19 -0
  514. package/src/duckdb/src/main/chunk_scan_state/ub_duckdb_main_chunk_scan_state.cpp +2 -0
  515. package/src/duckdb/src/main/client_context.cpp +133 -33
  516. package/src/duckdb/src/main/client_context_file_opener.cpp +8 -7
  517. package/src/duckdb/src/main/config.cpp +2 -0
  518. package/src/duckdb/src/main/connection_manager.cpp +8 -0
  519. package/src/duckdb/src/main/database.cpp +13 -4
  520. package/src/duckdb/src/main/database_manager.cpp +10 -1
  521. package/src/duckdb/src/main/extension/extension_helper.cpp +8 -5
  522. package/src/duckdb/src/main/extension/extension_install.cpp +1 -1
  523. package/src/duckdb/src/main/extension/ub_duckdb_main_extension.cpp +6 -0
  524. package/src/duckdb/src/main/prepared_statement_data.cpp +23 -6
  525. package/src/duckdb/src/main/query_profiler.cpp +9 -7
  526. package/src/duckdb/src/main/relation/read_csv_relation.cpp +17 -12
  527. package/src/duckdb/src/main/relation/ub_duckdb_main_relation.cpp +26 -0
  528. package/src/duckdb/src/main/relation/value_relation.cpp +2 -0
  529. package/src/duckdb/src/main/secret/secret.cpp +1 -1
  530. package/src/duckdb/src/main/secret/secret_manager.cpp +41 -8
  531. package/src/duckdb/src/main/secret/secret_storage.cpp +8 -2
  532. package/src/duckdb/src/main/settings/settings.cpp +42 -2
  533. package/src/duckdb/src/main/settings/ub_duckdb_main_settings.cpp +2 -0
  534. package/src/duckdb/src/main/ub_duckdb_main.cpp +25 -0
  535. package/src/duckdb/src/optimizer/compressed_materialization/ub_duckdb_optimizer_compressed_materialization.cpp +4 -0
  536. package/src/duckdb/src/optimizer/filter_combiner.cpp +20 -14
  537. package/src/duckdb/src/optimizer/in_clause_rewriter.cpp +5 -1
  538. package/src/duckdb/src/optimizer/join_order/relation_manager.cpp +23 -11
  539. package/src/duckdb/src/optimizer/join_order/ub_duckdb_optimizer_join_order.cpp +12 -0
  540. package/src/duckdb/src/optimizer/matcher/ub_duckdb_optimizer_matcher.cpp +2 -0
  541. package/src/duckdb/src/optimizer/pullup/ub_duckdb_optimizer_pullup.cpp +6 -0
  542. package/src/duckdb/src/optimizer/pushdown/pushdown_limit.cpp +1 -1
  543. package/src/duckdb/src/optimizer/pushdown/ub_duckdb_optimizer_pushdown.cpp +12 -0
  544. package/src/duckdb/src/optimizer/remove_unused_columns.cpp +7 -6
  545. package/src/duckdb/src/optimizer/rule/ordered_aggregate_optimizer.cpp +8 -6
  546. package/src/duckdb/src/optimizer/rule/regex_optimizations.cpp +1 -1
  547. package/src/duckdb/src/optimizer/rule/ub_duckdb_optimizer_rules.cpp +16 -0
  548. package/src/duckdb/src/optimizer/statistics/expression/propagate_cast.cpp +71 -1
  549. package/src/duckdb/src/optimizer/statistics/expression/ub_duckdb_optimizer_statistics_expr.cpp +11 -0
  550. package/src/duckdb/src/optimizer/statistics/operator/propagate_join.cpp +1 -1
  551. package/src/duckdb/src/optimizer/statistics/operator/propagate_limit.cpp +5 -1
  552. package/src/duckdb/src/optimizer/statistics/operator/ub_duckdb_optimizer_statistics_op.cpp +11 -0
  553. package/src/duckdb/src/optimizer/topn_optimizer.cpp +12 -11
  554. package/src/duckdb/src/optimizer/ub_duckdb_optimizer.cpp +20 -0
  555. package/src/duckdb/src/parallel/executor.cpp +8 -19
  556. package/src/duckdb/src/parallel/executor_task.cpp +6 -2
  557. package/src/duckdb/src/parallel/pipeline.cpp +12 -6
  558. package/src/duckdb/src/parallel/pipeline_executor.cpp +1 -1
  559. package/src/duckdb/src/parallel/pipeline_finish_event.cpp +2 -2
  560. package/src/duckdb/src/parallel/pipeline_initialize_event.cpp +1 -2
  561. package/src/duckdb/src/parallel/task_scheduler.cpp +15 -8
  562. package/src/duckdb/src/parallel/ub_duckdb_parallel.cpp +15 -0
  563. package/src/duckdb/src/parser/constraints/ub_duckdb_constraints.cpp +5 -0
  564. package/src/duckdb/src/parser/expression/ub_duckdb_expression.cpp +18 -0
  565. package/src/duckdb/src/parser/parsed_data/alter_table_info.cpp +0 -18
  566. package/src/duckdb/src/parser/parsed_data/comment_on_column_info.cpp +44 -0
  567. package/src/duckdb/src/parser/parsed_data/create_view_info.cpp +1 -0
  568. package/src/duckdb/src/parser/parsed_data/extra_drop_info.cpp +2 -0
  569. package/src/duckdb/src/parser/parsed_data/ub_duckdb_parsed_data.cpp +24 -0
  570. package/src/duckdb/src/parser/parser.cpp +1 -1
  571. package/src/duckdb/src/parser/query_error_context.cpp +15 -1
  572. package/src/duckdb/src/parser/query_node/ub_duckdb_query_node.cpp +5 -0
  573. package/src/duckdb/src/parser/statement/export_statement.cpp +2 -1
  574. package/src/duckdb/src/parser/statement/relation_statement.cpp +2 -2
  575. package/src/duckdb/src/parser/statement/ub_duckdb_statement.cpp +25 -0
  576. package/src/duckdb/src/parser/tableref/pivotref.cpp +3 -3
  577. package/src/duckdb/src/parser/tableref/showref.cpp +2 -0
  578. package/src/duckdb/src/parser/tableref/ub_duckdb_parser_tableref.cpp +8 -0
  579. package/src/duckdb/src/parser/transform/constraint/ub_duckdb_transformer_constraint.cpp +2 -0
  580. package/src/duckdb/src/parser/transform/expression/transform_boolean_test.cpp +1 -1
  581. package/src/duckdb/src/parser/transform/expression/transform_cast.cpp +10 -2
  582. package/src/duckdb/src/parser/transform/expression/transform_constant.cpp +7 -7
  583. package/src/duckdb/src/parser/transform/expression/transform_interval.cpp +2 -1
  584. package/src/duckdb/src/parser/transform/expression/ub_duckdb_transformer_expression.cpp +20 -0
  585. package/src/duckdb/src/parser/transform/helpers/transform_typename.cpp +2 -2
  586. package/src/duckdb/src/parser/transform/helpers/ub_duckdb_transformer_helpers.cpp +8 -0
  587. package/src/duckdb/src/parser/transform/statement/transform_comment_on.cpp +3 -8
  588. package/src/duckdb/src/parser/transform/statement/transform_pivot_stmt.cpp +3 -1
  589. package/src/duckdb/src/parser/transform/statement/transform_show_select.cpp +2 -3
  590. package/src/duckdb/src/parser/transform/statement/ub_duckdb_transformer_statement.cpp +37 -0
  591. package/src/duckdb/src/parser/transform/tableref/transform_join.cpp +16 -0
  592. package/src/duckdb/src/parser/transform/tableref/transform_pivot.cpp +49 -32
  593. package/src/duckdb/src/parser/transform/tableref/ub_duckdb_transformer_tableref.cpp +8 -0
  594. package/src/duckdb/src/parser/ub_duckdb_parser.cpp +15 -0
  595. package/src/duckdb/src/planner/binder/expression/bind_lambda.cpp +11 -4
  596. package/src/duckdb/src/planner/binder/expression/bind_operator_expression.cpp +4 -1
  597. package/src/duckdb/src/planner/binder/expression/bind_star_expression.cpp +71 -5
  598. package/src/duckdb/src/planner/binder/expression/bind_window_expression.cpp +35 -1
  599. package/src/duckdb/src/planner/binder/expression/ub_duckdb_bind_expression.cpp +20 -0
  600. package/src/duckdb/src/planner/binder/query_node/bind_select_node.cpp +55 -51
  601. package/src/duckdb/src/planner/binder/query_node/plan_query_node.cpp +1 -11
  602. package/src/duckdb/src/planner/binder/query_node/plan_subquery.cpp +2 -2
  603. package/src/duckdb/src/planner/binder/query_node/ub_duckdb_bind_query_node.cpp +12 -0
  604. package/src/duckdb/src/planner/binder/statement/bind_create.cpp +12 -6
  605. package/src/duckdb/src/planner/binder/statement/bind_drop.cpp +1 -1
  606. package/src/duckdb/src/planner/binder/statement/bind_export.cpp +8 -2
  607. package/src/duckdb/src/planner/binder/statement/bind_insert.cpp +6 -3
  608. package/src/duckdb/src/planner/binder/statement/bind_simple.cpp +13 -2
  609. package/src/duckdb/src/planner/binder/statement/ub_duckdb_bind_statement.cpp +26 -0
  610. package/src/duckdb/src/planner/binder/tableref/bind_basetableref.cpp +15 -4
  611. package/src/duckdb/src/planner/binder/tableref/bind_joinref.cpp +9 -2
  612. package/src/duckdb/src/planner/binder/tableref/bind_pivot.cpp +93 -45
  613. package/src/duckdb/src/planner/binder/tableref/bind_subqueryref.cpp +6 -1
  614. package/src/duckdb/src/planner/binder/tableref/ub_duckdb_bind_tableref.cpp +17 -0
  615. package/src/duckdb/src/planner/binder.cpp +22 -23
  616. package/src/duckdb/src/planner/bound_result_modifier.cpp +67 -4
  617. package/src/duckdb/src/planner/expression/bound_cast_expression.cpp +5 -1
  618. package/src/duckdb/src/planner/expression/bound_window_expression.cpp +3 -0
  619. package/src/duckdb/src/planner/expression/ub_duckdb_planner_expression.cpp +19 -0
  620. package/src/duckdb/src/planner/expression_binder/column_alias_binder.cpp +14 -9
  621. package/src/duckdb/src/planner/expression_binder/having_binder.cpp +17 -9
  622. package/src/duckdb/src/planner/expression_binder/lateral_binder.cpp +61 -37
  623. package/src/duckdb/src/planner/expression_binder/qualify_binder.cpp +8 -4
  624. package/src/duckdb/src/planner/expression_binder/ub_duckdb_expression_binders.cpp +20 -0
  625. package/src/duckdb/src/planner/expression_binder/where_binder.cpp +3 -2
  626. package/src/duckdb/src/planner/expression_iterator.cpp +73 -52
  627. package/src/duckdb/src/planner/filter/ub_duckdb_planner_filter.cpp +4 -0
  628. package/src/duckdb/src/planner/logical_operator_visitor.cpp +4 -14
  629. package/src/duckdb/src/planner/operator/logical_limit.cpp +14 -6
  630. package/src/duckdb/src/planner/operator/ub_duckdb_planner_operator.cpp +43 -0
  631. package/src/duckdb/src/planner/parsed_data/ub_duckdb_planner_parsed_data.cpp +2 -0
  632. package/src/duckdb/src/planner/planner.cpp +3 -0
  633. package/src/duckdb/src/planner/subquery/flatten_dependent_join.cpp +46 -18
  634. package/src/duckdb/src/planner/subquery/rewrite_correlated_expressions.cpp +39 -33
  635. package/src/duckdb/src/planner/subquery/ub_duckdb_planner_subquery.cpp +4 -0
  636. package/src/duckdb/src/planner/ub_duckdb_planner.cpp +15 -0
  637. package/src/duckdb/src/storage/arena_allocator.cpp +9 -0
  638. package/src/duckdb/src/storage/buffer/block_handle.cpp +7 -2
  639. package/src/duckdb/src/storage/buffer/block_manager.cpp +7 -3
  640. package/src/duckdb/src/storage/buffer/buffer_pool.cpp +121 -24
  641. package/src/duckdb/src/storage/buffer/ub_duckdb_storage_buffer.cpp +6 -0
  642. package/src/duckdb/src/storage/checkpoint/ub_duckdb_storage_checkpoint.cpp +5 -0
  643. package/src/duckdb/src/storage/checkpoint/write_overflow_strings_to_disk.cpp +4 -4
  644. package/src/duckdb/src/storage/compression/chimp/ub_duckdb_storage_compression_chimp.cpp +6 -0
  645. package/src/duckdb/src/storage/compression/dictionary_compression.cpp +6 -5
  646. package/src/duckdb/src/storage/compression/fsst.cpp +3 -2
  647. package/src/duckdb/src/storage/compression/rle.cpp +1 -1
  648. package/src/duckdb/src/storage/compression/string_uncompressed.cpp +4 -4
  649. package/src/duckdb/src/storage/compression/ub_duckdb_storage_compression.cpp +12 -0
  650. package/src/duckdb/src/storage/data_table.cpp +6 -3
  651. package/src/duckdb/src/storage/local_storage.cpp +5 -2
  652. package/src/duckdb/src/storage/metadata/metadata_manager.cpp +4 -4
  653. package/src/duckdb/src/storage/metadata/metadata_reader.cpp +1 -1
  654. package/src/duckdb/src/storage/metadata/metadata_writer.cpp +1 -1
  655. package/src/duckdb/src/storage/metadata/ub_duckdb_storage_metadata.cpp +4 -0
  656. package/src/duckdb/src/storage/partial_block_manager.cpp +1 -1
  657. package/src/duckdb/src/storage/serialization/serialize_create_info.cpp +2 -0
  658. package/src/duckdb/src/storage/serialization/serialize_expression.cpp +3 -0
  659. package/src/duckdb/src/storage/serialization/serialize_logical_operator.cpp +5 -29
  660. package/src/duckdb/src/storage/serialization/serialize_nodes.cpp +22 -4
  661. package/src/duckdb/src/storage/serialization/serialize_parse_info.cpp +12 -32
  662. package/src/duckdb/src/storage/serialization/ub_duckdb_storage_serialization.cpp +16 -0
  663. package/src/duckdb/src/storage/standard_buffer_manager.cpp +29 -397
  664. package/src/duckdb/src/storage/statistics/string_stats.cpp +1 -1
  665. package/src/duckdb/src/storage/statistics/ub_duckdb_storage_statistics.cpp +10 -0
  666. package/src/duckdb/src/storage/storage_info.cpp +1 -1
  667. package/src/duckdb/src/storage/table/column_checkpoint_state.cpp +3 -3
  668. package/src/duckdb/src/storage/table/column_data.cpp +7 -16
  669. package/src/duckdb/src/storage/table/column_data_checkpointer.cpp +4 -1
  670. package/src/duckdb/src/storage/table/column_segment.cpp +68 -78
  671. package/src/duckdb/src/storage/table/list_column_data.cpp +1 -0
  672. package/src/duckdb/src/storage/table/row_group.cpp +17 -7
  673. package/src/duckdb/src/storage/table/row_group_collection.cpp +28 -27
  674. package/src/duckdb/src/storage/table/ub_duckdb_storage_table.cpp +17 -0
  675. package/src/duckdb/src/storage/table/update_segment.cpp +7 -7
  676. package/src/duckdb/src/storage/temporary_file_manager.cpp +334 -0
  677. package/src/duckdb/src/storage/ub_duckdb_storage.cpp +20 -0
  678. package/src/duckdb/src/storage/write_ahead_log.cpp +3 -2
  679. package/src/duckdb/src/transaction/commit_state.cpp +4 -2
  680. package/src/duckdb/src/transaction/duck_transaction_manager.cpp +32 -17
  681. package/src/duckdb/src/transaction/meta_transaction.cpp +24 -0
  682. package/src/duckdb/src/transaction/transaction_context.cpp +0 -9
  683. package/src/duckdb/src/transaction/ub_duckdb_transaction.cpp +11 -0
  684. package/src/duckdb/src/transaction/undo_buffer.cpp +1 -1
  685. package/src/duckdb/third_party/jaro_winkler/details/common.hpp +1 -1
  686. package/src/duckdb/third_party/libpg_query/include/nodes/parsenodes.hpp +2 -0
  687. package/src/duckdb/third_party/libpg_query/include/parser/gram.hpp +1032 -551
  688. package/src/duckdb/third_party/libpg_query/src_backend_parser_gram.cpp +24122 -24304
  689. package/src/duckdb/third_party/mbedtls/include/mbedtls/mbedtls_config.h +0 -3
  690. package/src/duckdb/third_party/mbedtls/library/entropy_poll.cpp +32 -4
  691. package/src/duckdb/third_party/miniz/miniz_wrapper.hpp +4 -4
  692. package/src/duckdb/third_party/tdigest/t_digest.hpp +3 -3
  693. package/src/duckdb/ub_src_common_arrow_appender.cpp +2 -0
  694. package/src/duckdb/ub_src_common_exception.cpp +2 -0
  695. package/src/duckdb/ub_src_execution_operator_helper.cpp +2 -0
  696. package/src/duckdb/ub_src_execution_operator_persistent.cpp +0 -2
  697. package/src/duckdb/ub_src_execution_physical_plan.cpp +0 -2
  698. package/src/duckdb/ub_src_parser_parsed_data.cpp +1 -1
  699. package/src/duckdb/ub_src_planner_operator.cpp +0 -2
  700. package/src/duckdb/ub_src_storage.cpp +2 -0
  701. package/test/columns.test.ts +1 -1
  702. package/test/test_all_types.test.ts +1 -1
@@ -1,14 +1,14 @@
1
- /* A Bison parser, made by GNU Bison 3.8.2. */
1
+ /* A Bison parser, made by GNU Bison 2.3. */
2
2
 
3
- /* Bison interface for Yacc-like parsers in C
3
+ /* Skeleton interface for Bison's Yacc-like parsers in C
4
4
 
5
- Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6
- Inc.
5
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6
+ Free Software Foundation, Inc.
7
7
 
8
- This program is free software: you can redistribute it and/or modify
8
+ This program is free software; you can redistribute it and/or modify
9
9
  it under the terms of the GNU General Public License as published by
10
- the Free Software Foundation, either version 3 of the License, or
11
- (at your option) any later version.
10
+ the Free Software Foundation; either version 2, or (at your option)
11
+ any later version.
12
12
 
13
13
  This program is distributed in the hope that it will be useful,
14
14
  but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,7 +16,9 @@
16
16
  GNU General Public License for more details.
17
17
 
18
18
  You should have received a copy of the GNU General Public License
19
- along with this program. If not, see <https://www.gnu.org/licenses/>. */
19
+ along with this program; if not, write to the Free Software
20
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
+ Boston, MA 02110-1301, USA. */
20
22
 
21
23
  /* As a special exception, you may create a larger work that contains
22
24
  part or all of the Bison parser skeleton and distribute that work
@@ -31,539 +33,1023 @@
31
33
  This special exception was added by the Free Software Foundation in
32
34
  version 2.2 of Bison. */
33
35
 
34
- /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35
- especially those whose name start with YY_ or yy_. They are
36
- private implementation details that can be changed or removed. */
37
-
38
- #ifndef YY_BASE_YY_THIRD_PARTY_LIBPG_QUERY_GRAMMAR_GRAMMAR_OUT_HPP_INCLUDED
39
- # define YY_BASE_YY_THIRD_PARTY_LIBPG_QUERY_GRAMMAR_GRAMMAR_OUT_HPP_INCLUDED
40
- /* Debug traces. */
41
- #ifndef YYDEBUG
42
- # define YYDEBUG 0
43
- #endif
44
- #if YYDEBUG
45
- extern int base_yydebug;
46
- #endif
47
-
48
- /* Token kinds. */
36
+ /* Tokens. */
49
37
  #ifndef YYTOKENTYPE
50
38
  # define YYTOKENTYPE
51
- enum yytokentype
52
- {
53
- YYEMPTY = -2,
54
- YYEOF = 0, /* "end of file" */
55
- YYerror = 256, /* error */
56
- YYUNDEF = 257, /* "invalid token" */
57
- IDENT = 258, /* IDENT */
58
- FCONST = 259, /* FCONST */
59
- SCONST = 260, /* SCONST */
60
- BCONST = 261, /* BCONST */
61
- XCONST = 262, /* XCONST */
62
- Op = 263, /* Op */
63
- ICONST = 264, /* ICONST */
64
- PARAM = 265, /* PARAM */
65
- TYPECAST = 266, /* TYPECAST */
66
- DOT_DOT = 267, /* DOT_DOT */
67
- COLON_EQUALS = 268, /* COLON_EQUALS */
68
- EQUALS_GREATER = 269, /* EQUALS_GREATER */
69
- INTEGER_DIVISION = 270, /* INTEGER_DIVISION */
70
- POWER_OF = 271, /* POWER_OF */
71
- LAMBDA_ARROW = 272, /* LAMBDA_ARROW */
72
- DOUBLE_ARROW = 273, /* DOUBLE_ARROW */
73
- LESS_EQUALS = 274, /* LESS_EQUALS */
74
- GREATER_EQUALS = 275, /* GREATER_EQUALS */
75
- NOT_EQUALS = 276, /* NOT_EQUALS */
76
- ABORT_P = 277, /* ABORT_P */
77
- ABSOLUTE_P = 278, /* ABSOLUTE_P */
78
- ACCESS = 279, /* ACCESS */
79
- ACTION = 280, /* ACTION */
80
- ADD_P = 281, /* ADD_P */
81
- ADMIN = 282, /* ADMIN */
82
- AFTER = 283, /* AFTER */
83
- AGGREGATE = 284, /* AGGREGATE */
84
- ALL = 285, /* ALL */
85
- ALSO = 286, /* ALSO */
86
- ALTER = 287, /* ALTER */
87
- ALWAYS = 288, /* ALWAYS */
88
- ANALYSE = 289, /* ANALYSE */
89
- ANALYZE = 290, /* ANALYZE */
90
- AND = 291, /* AND */
91
- ANTI = 292, /* ANTI */
92
- ANY = 293, /* ANY */
93
- ARRAY = 294, /* ARRAY */
94
- AS = 295, /* AS */
95
- ASC_P = 296, /* ASC_P */
96
- ASOF = 297, /* ASOF */
97
- ASSERTION = 298, /* ASSERTION */
98
- ASSIGNMENT = 299, /* ASSIGNMENT */
99
- ASYMMETRIC = 300, /* ASYMMETRIC */
100
- AT = 301, /* AT */
101
- ATTACH = 302, /* ATTACH */
102
- ATTRIBUTE = 303, /* ATTRIBUTE */
103
- AUTHORIZATION = 304, /* AUTHORIZATION */
104
- BACKWARD = 305, /* BACKWARD */
105
- BEFORE = 306, /* BEFORE */
106
- BEGIN_P = 307, /* BEGIN_P */
107
- BETWEEN = 308, /* BETWEEN */
108
- BIGINT = 309, /* BIGINT */
109
- BINARY = 310, /* BINARY */
110
- BIT = 311, /* BIT */
111
- BOOLEAN_P = 312, /* BOOLEAN_P */
112
- BOTH = 313, /* BOTH */
113
- BY = 314, /* BY */
114
- CACHE = 315, /* CACHE */
115
- CALL_P = 316, /* CALL_P */
116
- CALLED = 317, /* CALLED */
117
- CASCADE = 318, /* CASCADE */
118
- CASCADED = 319, /* CASCADED */
119
- CASE = 320, /* CASE */
120
- CAST = 321, /* CAST */
121
- CATALOG_P = 322, /* CATALOG_P */
122
- CENTURIES_P = 323, /* CENTURIES_P */
123
- CENTURY_P = 324, /* CENTURY_P */
124
- CHAIN = 325, /* CHAIN */
125
- CHAR_P = 326, /* CHAR_P */
126
- CHARACTER = 327, /* CHARACTER */
127
- CHARACTERISTICS = 328, /* CHARACTERISTICS */
128
- CHECK_P = 329, /* CHECK_P */
129
- CHECKPOINT = 330, /* CHECKPOINT */
130
- CLASS = 331, /* CLASS */
131
- CLOSE = 332, /* CLOSE */
132
- CLUSTER = 333, /* CLUSTER */
133
- COALESCE = 334, /* COALESCE */
134
- COLLATE = 335, /* COLLATE */
135
- COLLATION = 336, /* COLLATION */
136
- COLUMN = 337, /* COLUMN */
137
- COLUMNS = 338, /* COLUMNS */
138
- COMMENT = 339, /* COMMENT */
139
- COMMENTS = 340, /* COMMENTS */
140
- COMMIT = 341, /* COMMIT */
141
- COMMITTED = 342, /* COMMITTED */
142
- COMPRESSION = 343, /* COMPRESSION */
143
- CONCURRENTLY = 344, /* CONCURRENTLY */
144
- CONFIGURATION = 345, /* CONFIGURATION */
145
- CONFLICT = 346, /* CONFLICT */
146
- CONNECTION = 347, /* CONNECTION */
147
- CONSTRAINT = 348, /* CONSTRAINT */
148
- CONSTRAINTS = 349, /* CONSTRAINTS */
149
- CONTENT_P = 350, /* CONTENT_P */
150
- CONTINUE_P = 351, /* CONTINUE_P */
151
- CONVERSION_P = 352, /* CONVERSION_P */
152
- COPY = 353, /* COPY */
153
- COST = 354, /* COST */
154
- CREATE_P = 355, /* CREATE_P */
155
- CROSS = 356, /* CROSS */
156
- CSV = 357, /* CSV */
157
- CUBE = 358, /* CUBE */
158
- CURRENT_P = 359, /* CURRENT_P */
159
- CURSOR = 360, /* CURSOR */
160
- CYCLE = 361, /* CYCLE */
161
- DATA_P = 362, /* DATA_P */
162
- DATABASE = 363, /* DATABASE */
163
- DAY_P = 364, /* DAY_P */
164
- DAYS_P = 365, /* DAYS_P */
165
- DEALLOCATE = 366, /* DEALLOCATE */
166
- DEC = 367, /* DEC */
167
- DECADE_P = 368, /* DECADE_P */
168
- DECADES_P = 369, /* DECADES_P */
169
- DECIMAL_P = 370, /* DECIMAL_P */
170
- DECLARE = 371, /* DECLARE */
171
- DEFAULT = 372, /* DEFAULT */
172
- DEFAULTS = 373, /* DEFAULTS */
173
- DEFERRABLE = 374, /* DEFERRABLE */
174
- DEFERRED = 375, /* DEFERRED */
175
- DEFINER = 376, /* DEFINER */
176
- DELETE_P = 377, /* DELETE_P */
177
- DELIMITER = 378, /* DELIMITER */
178
- DELIMITERS = 379, /* DELIMITERS */
179
- DEPENDS = 380, /* DEPENDS */
180
- DESC_P = 381, /* DESC_P */
181
- DESCRIBE = 382, /* DESCRIBE */
182
- DETACH = 383, /* DETACH */
183
- DICTIONARY = 384, /* DICTIONARY */
184
- DISABLE_P = 385, /* DISABLE_P */
185
- DISCARD = 386, /* DISCARD */
186
- DISTINCT = 387, /* DISTINCT */
187
- DO = 388, /* DO */
188
- DOCUMENT_P = 389, /* DOCUMENT_P */
189
- DOMAIN_P = 390, /* DOMAIN_P */
190
- DOUBLE_P = 391, /* DOUBLE_P */
191
- DROP = 392, /* DROP */
192
- EACH = 393, /* EACH */
193
- ELSE = 394, /* ELSE */
194
- ENABLE_P = 395, /* ENABLE_P */
195
- ENCODING = 396, /* ENCODING */
196
- ENCRYPTED = 397, /* ENCRYPTED */
197
- END_P = 398, /* END_P */
198
- ENUM_P = 399, /* ENUM_P */
199
- ESCAPE = 400, /* ESCAPE */
200
- EVENT = 401, /* EVENT */
201
- EXCEPT = 402, /* EXCEPT */
202
- EXCLUDE = 403, /* EXCLUDE */
203
- EXCLUDING = 404, /* EXCLUDING */
204
- EXCLUSIVE = 405, /* EXCLUSIVE */
205
- EXECUTE = 406, /* EXECUTE */
206
- EXISTS = 407, /* EXISTS */
207
- EXPLAIN = 408, /* EXPLAIN */
208
- EXPORT_P = 409, /* EXPORT_P */
209
- EXPORT_STATE = 410, /* EXPORT_STATE */
210
- EXTENSION = 411, /* EXTENSION */
211
- EXTERNAL = 412, /* EXTERNAL */
212
- EXTRACT = 413, /* EXTRACT */
213
- FALSE_P = 414, /* FALSE_P */
214
- FAMILY = 415, /* FAMILY */
215
- FETCH = 416, /* FETCH */
216
- FILTER = 417, /* FILTER */
217
- FIRST_P = 418, /* FIRST_P */
218
- FLOAT_P = 419, /* FLOAT_P */
219
- FOLLOWING = 420, /* FOLLOWING */
220
- FOR = 421, /* FOR */
221
- FORCE = 422, /* FORCE */
222
- FOREIGN = 423, /* FOREIGN */
223
- FORWARD = 424, /* FORWARD */
224
- FREEZE = 425, /* FREEZE */
225
- FROM = 426, /* FROM */
226
- FULL = 427, /* FULL */
227
- FUNCTION = 428, /* FUNCTION */
228
- FUNCTIONS = 429, /* FUNCTIONS */
229
- GENERATED = 430, /* GENERATED */
230
- GLOB = 431, /* GLOB */
231
- GLOBAL = 432, /* GLOBAL */
232
- GRANT = 433, /* GRANT */
233
- GRANTED = 434, /* GRANTED */
234
- GROUP_P = 435, /* GROUP_P */
235
- GROUPING = 436, /* GROUPING */
236
- GROUPING_ID = 437, /* GROUPING_ID */
237
- GROUPS = 438, /* GROUPS */
238
- HANDLER = 439, /* HANDLER */
239
- HAVING = 440, /* HAVING */
240
- HEADER_P = 441, /* HEADER_P */
241
- HOLD = 442, /* HOLD */
242
- HOUR_P = 443, /* HOUR_P */
243
- HOURS_P = 444, /* HOURS_P */
244
- IDENTITY_P = 445, /* IDENTITY_P */
245
- IF_P = 446, /* IF_P */
246
- IGNORE_P = 447, /* IGNORE_P */
247
- ILIKE = 448, /* ILIKE */
248
- IMMEDIATE = 449, /* IMMEDIATE */
249
- IMMUTABLE = 450, /* IMMUTABLE */
250
- IMPLICIT_P = 451, /* IMPLICIT_P */
251
- IMPORT_P = 452, /* IMPORT_P */
252
- IN_P = 453, /* IN_P */
253
- INCLUDE_P = 454, /* INCLUDE_P */
254
- INCLUDING = 455, /* INCLUDING */
255
- INCREMENT = 456, /* INCREMENT */
256
- INDEX = 457, /* INDEX */
257
- INDEXES = 458, /* INDEXES */
258
- INHERIT = 459, /* INHERIT */
259
- INHERITS = 460, /* INHERITS */
260
- INITIALLY = 461, /* INITIALLY */
261
- INLINE_P = 462, /* INLINE_P */
262
- INNER_P = 463, /* INNER_P */
263
- INOUT = 464, /* INOUT */
264
- INPUT_P = 465, /* INPUT_P */
265
- INSENSITIVE = 466, /* INSENSITIVE */
266
- INSERT = 467, /* INSERT */
267
- INSTALL = 468, /* INSTALL */
268
- INSTEAD = 469, /* INSTEAD */
269
- INT_P = 470, /* INT_P */
270
- INTEGER = 471, /* INTEGER */
271
- INTERSECT = 472, /* INTERSECT */
272
- INTERVAL = 473, /* INTERVAL */
273
- INTO = 474, /* INTO */
274
- INVOKER = 475, /* INVOKER */
275
- IS = 476, /* IS */
276
- ISNULL = 477, /* ISNULL */
277
- ISOLATION = 478, /* ISOLATION */
278
- JOIN = 479, /* JOIN */
279
- JSON = 480, /* JSON */
280
- KEY = 481, /* KEY */
281
- LABEL = 482, /* LABEL */
282
- LANGUAGE = 483, /* LANGUAGE */
283
- LARGE_P = 484, /* LARGE_P */
284
- LAST_P = 485, /* LAST_P */
285
- LATERAL_P = 486, /* LATERAL_P */
286
- LEADING = 487, /* LEADING */
287
- LEAKPROOF = 488, /* LEAKPROOF */
288
- LEFT = 489, /* LEFT */
289
- LEVEL = 490, /* LEVEL */
290
- LIKE = 491, /* LIKE */
291
- LIMIT = 492, /* LIMIT */
292
- LISTEN = 493, /* LISTEN */
293
- LOAD = 494, /* LOAD */
294
- LOCAL = 495, /* LOCAL */
295
- LOCATION = 496, /* LOCATION */
296
- LOCK_P = 497, /* LOCK_P */
297
- LOCKED = 498, /* LOCKED */
298
- LOGGED = 499, /* LOGGED */
299
- MACRO = 500, /* MACRO */
300
- MAP = 501, /* MAP */
301
- MAPPING = 502, /* MAPPING */
302
- MATCH = 503, /* MATCH */
303
- MATERIALIZED = 504, /* MATERIALIZED */
304
- MAXVALUE = 505, /* MAXVALUE */
305
- METHOD = 506, /* METHOD */
306
- MICROSECOND_P = 507, /* MICROSECOND_P */
307
- MICROSECONDS_P = 508, /* MICROSECONDS_P */
308
- MILLENNIA_P = 509, /* MILLENNIA_P */
309
- MILLENNIUM_P = 510, /* MILLENNIUM_P */
310
- MILLISECOND_P = 511, /* MILLISECOND_P */
311
- MILLISECONDS_P = 512, /* MILLISECONDS_P */
312
- MINUTE_P = 513, /* MINUTE_P */
313
- MINUTES_P = 514, /* MINUTES_P */
314
- MINVALUE = 515, /* MINVALUE */
315
- MODE = 516, /* MODE */
316
- MONTH_P = 517, /* MONTH_P */
317
- MONTHS_P = 518, /* MONTHS_P */
318
- MOVE = 519, /* MOVE */
319
- NAME_P = 520, /* NAME_P */
320
- NAMES = 521, /* NAMES */
321
- NATIONAL = 522, /* NATIONAL */
322
- NATURAL = 523, /* NATURAL */
323
- NCHAR = 524, /* NCHAR */
324
- NEW = 525, /* NEW */
325
- NEXT = 526, /* NEXT */
326
- NO = 527, /* NO */
327
- NONE = 528, /* NONE */
328
- NOT = 529, /* NOT */
329
- NOTHING = 530, /* NOTHING */
330
- NOTIFY = 531, /* NOTIFY */
331
- NOTNULL = 532, /* NOTNULL */
332
- NOWAIT = 533, /* NOWAIT */
333
- NULL_P = 534, /* NULL_P */
334
- NULLIF = 535, /* NULLIF */
335
- NULLS_P = 536, /* NULLS_P */
336
- NUMERIC = 537, /* NUMERIC */
337
- OBJECT_P = 538, /* OBJECT_P */
338
- OF = 539, /* OF */
339
- OFF = 540, /* OFF */
340
- OFFSET = 541, /* OFFSET */
341
- OIDS = 542, /* OIDS */
342
- OLD = 543, /* OLD */
343
- ON = 544, /* ON */
344
- ONLY = 545, /* ONLY */
345
- OPERATOR = 546, /* OPERATOR */
346
- OPTION = 547, /* OPTION */
347
- OPTIONS = 548, /* OPTIONS */
348
- OR = 549, /* OR */
349
- ORDER = 550, /* ORDER */
350
- ORDINALITY = 551, /* ORDINALITY */
351
- OTHERS = 552, /* OTHERS */
352
- OUT_P = 553, /* OUT_P */
353
- OUTER_P = 554, /* OUTER_P */
354
- OVER = 555, /* OVER */
355
- OVERLAPS = 556, /* OVERLAPS */
356
- OVERLAY = 557, /* OVERLAY */
357
- OVERRIDING = 558, /* OVERRIDING */
358
- OWNED = 559, /* OWNED */
359
- OWNER = 560, /* OWNER */
360
- PARALLEL = 561, /* PARALLEL */
361
- PARSER = 562, /* PARSER */
362
- PARTIAL = 563, /* PARTIAL */
363
- PARTITION = 564, /* PARTITION */
364
- PASSING = 565, /* PASSING */
365
- PASSWORD = 566, /* PASSWORD */
366
- PERCENT = 567, /* PERCENT */
367
- PERSISTENT = 568, /* PERSISTENT */
368
- PIVOT = 569, /* PIVOT */
369
- PIVOT_LONGER = 570, /* PIVOT_LONGER */
370
- PIVOT_WIDER = 571, /* PIVOT_WIDER */
371
- PLACING = 572, /* PLACING */
372
- PLANS = 573, /* PLANS */
373
- POLICY = 574, /* POLICY */
374
- POSITION = 575, /* POSITION */
375
- POSITIONAL = 576, /* POSITIONAL */
376
- PRAGMA_P = 577, /* PRAGMA_P */
377
- PRECEDING = 578, /* PRECEDING */
378
- PRECISION = 579, /* PRECISION */
379
- PREPARE = 580, /* PREPARE */
380
- PREPARED = 581, /* PREPARED */
381
- PRESERVE = 582, /* PRESERVE */
382
- PRIMARY = 583, /* PRIMARY */
383
- PRIOR = 584, /* PRIOR */
384
- PRIVILEGES = 585, /* PRIVILEGES */
385
- PROCEDURAL = 586, /* PROCEDURAL */
386
- PROCEDURE = 587, /* PROCEDURE */
387
- PROGRAM = 588, /* PROGRAM */
388
- PUBLICATION = 589, /* PUBLICATION */
389
- QUALIFY = 590, /* QUALIFY */
390
- QUOTE = 591, /* QUOTE */
391
- RANGE = 592, /* RANGE */
392
- READ_P = 593, /* READ_P */
393
- REAL = 594, /* REAL */
394
- REASSIGN = 595, /* REASSIGN */
395
- RECHECK = 596, /* RECHECK */
396
- RECURSIVE = 597, /* RECURSIVE */
397
- REF = 598, /* REF */
398
- REFERENCES = 599, /* REFERENCES */
399
- REFERENCING = 600, /* REFERENCING */
400
- REFRESH = 601, /* REFRESH */
401
- REINDEX = 602, /* REINDEX */
402
- RELATIVE_P = 603, /* RELATIVE_P */
403
- RELEASE = 604, /* RELEASE */
404
- RENAME = 605, /* RENAME */
405
- REPEATABLE = 606, /* REPEATABLE */
406
- REPLACE = 607, /* REPLACE */
407
- REPLICA = 608, /* REPLICA */
408
- RESET = 609, /* RESET */
409
- RESPECT_P = 610, /* RESPECT_P */
410
- RESTART = 611, /* RESTART */
411
- RESTRICT = 612, /* RESTRICT */
412
- RETURNING = 613, /* RETURNING */
413
- RETURNS = 614, /* RETURNS */
414
- REVOKE = 615, /* REVOKE */
415
- RIGHT = 616, /* RIGHT */
416
- ROLE = 617, /* ROLE */
417
- ROLLBACK = 618, /* ROLLBACK */
418
- ROLLUP = 619, /* ROLLUP */
419
- ROW = 620, /* ROW */
420
- ROWS = 621, /* ROWS */
421
- RULE = 622, /* RULE */
422
- SAMPLE = 623, /* SAMPLE */
423
- SAVEPOINT = 624, /* SAVEPOINT */
424
- SCHEMA = 625, /* SCHEMA */
425
- SCHEMAS = 626, /* SCHEMAS */
426
- SCOPE = 627, /* SCOPE */
427
- SCROLL = 628, /* SCROLL */
428
- SEARCH = 629, /* SEARCH */
429
- SECOND_P = 630, /* SECOND_P */
430
- SECONDS_P = 631, /* SECONDS_P */
431
- SECRET = 632, /* SECRET */
432
- SECURITY = 633, /* SECURITY */
433
- SELECT = 634, /* SELECT */
434
- SEMI = 635, /* SEMI */
435
- SEQUENCE = 636, /* SEQUENCE */
436
- SEQUENCES = 637, /* SEQUENCES */
437
- SERIALIZABLE = 638, /* SERIALIZABLE */
438
- SERVER = 639, /* SERVER */
439
- SESSION = 640, /* SESSION */
440
- SET = 641, /* SET */
441
- SETOF = 642, /* SETOF */
442
- SETS = 643, /* SETS */
443
- SHARE = 644, /* SHARE */
444
- SHOW = 645, /* SHOW */
445
- SIMILAR = 646, /* SIMILAR */
446
- SIMPLE = 647, /* SIMPLE */
447
- SKIP = 648, /* SKIP */
448
- SMALLINT = 649, /* SMALLINT */
449
- SNAPSHOT = 650, /* SNAPSHOT */
450
- SOME = 651, /* SOME */
451
- SQL_P = 652, /* SQL_P */
452
- STABLE = 653, /* STABLE */
453
- STANDALONE_P = 654, /* STANDALONE_P */
454
- START = 655, /* START */
455
- STATEMENT = 656, /* STATEMENT */
456
- STATISTICS = 657, /* STATISTICS */
457
- STDIN = 658, /* STDIN */
458
- STDOUT = 659, /* STDOUT */
459
- STORAGE = 660, /* STORAGE */
460
- STORED = 661, /* STORED */
461
- STRICT_P = 662, /* STRICT_P */
462
- STRIP_P = 663, /* STRIP_P */
463
- STRUCT = 664, /* STRUCT */
464
- SUBSCRIPTION = 665, /* SUBSCRIPTION */
465
- SUBSTRING = 666, /* SUBSTRING */
466
- SUMMARIZE = 667, /* SUMMARIZE */
467
- SYMMETRIC = 668, /* SYMMETRIC */
468
- SYSID = 669, /* SYSID */
469
- SYSTEM_P = 670, /* SYSTEM_P */
470
- TABLE = 671, /* TABLE */
471
- TABLES = 672, /* TABLES */
472
- TABLESAMPLE = 673, /* TABLESAMPLE */
473
- TABLESPACE = 674, /* TABLESPACE */
474
- TEMP = 675, /* TEMP */
475
- TEMPLATE = 676, /* TEMPLATE */
476
- TEMPORARY = 677, /* TEMPORARY */
477
- TEXT_P = 678, /* TEXT_P */
478
- THEN = 679, /* THEN */
479
- TIES = 680, /* TIES */
480
- TIME = 681, /* TIME */
481
- TIMESTAMP = 682, /* TIMESTAMP */
482
- TO = 683, /* TO */
483
- TRAILING = 684, /* TRAILING */
484
- TRANSACTION = 685, /* TRANSACTION */
485
- TRANSFORM = 686, /* TRANSFORM */
486
- TREAT = 687, /* TREAT */
487
- TRIGGER = 688, /* TRIGGER */
488
- TRIM = 689, /* TRIM */
489
- TRUE_P = 690, /* TRUE_P */
490
- TRUNCATE = 691, /* TRUNCATE */
491
- TRUSTED = 692, /* TRUSTED */
492
- TRY_CAST = 693, /* TRY_CAST */
493
- TYPE_P = 694, /* TYPE_P */
494
- TYPES_P = 695, /* TYPES_P */
495
- UNBOUNDED = 696, /* UNBOUNDED */
496
- UNCOMMITTED = 697, /* UNCOMMITTED */
497
- UNENCRYPTED = 698, /* UNENCRYPTED */
498
- UNION = 699, /* UNION */
499
- UNIQUE = 700, /* UNIQUE */
500
- UNKNOWN = 701, /* UNKNOWN */
501
- UNLISTEN = 702, /* UNLISTEN */
502
- UNLOGGED = 703, /* UNLOGGED */
503
- UNPIVOT = 704, /* UNPIVOT */
504
- UNTIL = 705, /* UNTIL */
505
- UPDATE = 706, /* UPDATE */
506
- USE_P = 707, /* USE_P */
507
- USER = 708, /* USER */
508
- USING = 709, /* USING */
509
- VACUUM = 710, /* VACUUM */
510
- VALID = 711, /* VALID */
511
- VALIDATE = 712, /* VALIDATE */
512
- VALIDATOR = 713, /* VALIDATOR */
513
- VALUE_P = 714, /* VALUE_P */
514
- VALUES = 715, /* VALUES */
515
- VARCHAR = 716, /* VARCHAR */
516
- VARIADIC = 717, /* VARIADIC */
517
- VARYING = 718, /* VARYING */
518
- VERBOSE = 719, /* VERBOSE */
519
- VERSION_P = 720, /* VERSION_P */
520
- VIEW = 721, /* VIEW */
521
- VIEWS = 722, /* VIEWS */
522
- VIRTUAL = 723, /* VIRTUAL */
523
- VOLATILE = 724, /* VOLATILE */
524
- WEEK_P = 725, /* WEEK_P */
525
- WEEKS_P = 726, /* WEEKS_P */
526
- WHEN = 727, /* WHEN */
527
- WHERE = 728, /* WHERE */
528
- WHITESPACE_P = 729, /* WHITESPACE_P */
529
- WINDOW = 730, /* WINDOW */
530
- WITH = 731, /* WITH */
531
- WITHIN = 732, /* WITHIN */
532
- WITHOUT = 733, /* WITHOUT */
533
- WORK = 734, /* WORK */
534
- WRAPPER = 735, /* WRAPPER */
535
- WRITE_P = 736, /* WRITE_P */
536
- XML_P = 737, /* XML_P */
537
- XMLATTRIBUTES = 738, /* XMLATTRIBUTES */
538
- XMLCONCAT = 739, /* XMLCONCAT */
539
- XMLELEMENT = 740, /* XMLELEMENT */
540
- XMLEXISTS = 741, /* XMLEXISTS */
541
- XMLFOREST = 742, /* XMLFOREST */
542
- XMLNAMESPACES = 743, /* XMLNAMESPACES */
543
- XMLPARSE = 744, /* XMLPARSE */
544
- XMLPI = 745, /* XMLPI */
545
- XMLROOT = 746, /* XMLROOT */
546
- XMLSERIALIZE = 747, /* XMLSERIALIZE */
547
- XMLTABLE = 748, /* XMLTABLE */
548
- YEAR_P = 749, /* YEAR_P */
549
- YEARS_P = 750, /* YEARS_P */
550
- YES_P = 751, /* YES_P */
551
- ZONE = 752, /* ZONE */
552
- NOT_LA = 753, /* NOT_LA */
553
- NULLS_LA = 754, /* NULLS_LA */
554
- WITH_LA = 755, /* WITH_LA */
555
- POSTFIXOP = 756, /* POSTFIXOP */
556
- UMINUS = 757 /* UMINUS */
557
- };
558
- typedef enum yytokentype yytoken_kind_t;
39
+ /* Put the tokens into the symbol table, so that GDB and other debuggers
40
+ know about them. */
41
+ enum yytokentype {
42
+ IDENT = 258,
43
+ FCONST = 259,
44
+ SCONST = 260,
45
+ BCONST = 261,
46
+ XCONST = 262,
47
+ Op = 263,
48
+ ICONST = 264,
49
+ PARAM = 265,
50
+ TYPECAST = 266,
51
+ DOT_DOT = 267,
52
+ COLON_EQUALS = 268,
53
+ EQUALS_GREATER = 269,
54
+ INTEGER_DIVISION = 270,
55
+ POWER_OF = 271,
56
+ LAMBDA_ARROW = 272,
57
+ DOUBLE_ARROW = 273,
58
+ LESS_EQUALS = 274,
59
+ GREATER_EQUALS = 275,
60
+ NOT_EQUALS = 276,
61
+ ABORT_P = 277,
62
+ ABSOLUTE_P = 278,
63
+ ACCESS = 279,
64
+ ACTION = 280,
65
+ ADD_P = 281,
66
+ ADMIN = 282,
67
+ AFTER = 283,
68
+ AGGREGATE = 284,
69
+ ALL = 285,
70
+ ALSO = 286,
71
+ ALTER = 287,
72
+ ALWAYS = 288,
73
+ ANALYSE = 289,
74
+ ANALYZE = 290,
75
+ AND = 291,
76
+ ANTI = 292,
77
+ ANY = 293,
78
+ ARRAY = 294,
79
+ AS = 295,
80
+ ASC_P = 296,
81
+ ASOF = 297,
82
+ ASSERTION = 298,
83
+ ASSIGNMENT = 299,
84
+ ASYMMETRIC = 300,
85
+ AT = 301,
86
+ ATTACH = 302,
87
+ ATTRIBUTE = 303,
88
+ AUTHORIZATION = 304,
89
+ BACKWARD = 305,
90
+ BEFORE = 306,
91
+ BEGIN_P = 307,
92
+ BETWEEN = 308,
93
+ BIGINT = 309,
94
+ BINARY = 310,
95
+ BIT = 311,
96
+ BOOLEAN_P = 312,
97
+ BOTH = 313,
98
+ BY = 314,
99
+ CACHE = 315,
100
+ CALL_P = 316,
101
+ CALLED = 317,
102
+ CASCADE = 318,
103
+ CASCADED = 319,
104
+ CASE = 320,
105
+ CAST = 321,
106
+ CATALOG_P = 322,
107
+ CENTURIES_P = 323,
108
+ CENTURY_P = 324,
109
+ CHAIN = 325,
110
+ CHAR_P = 326,
111
+ CHARACTER = 327,
112
+ CHARACTERISTICS = 328,
113
+ CHECK_P = 329,
114
+ CHECKPOINT = 330,
115
+ CLASS = 331,
116
+ CLOSE = 332,
117
+ CLUSTER = 333,
118
+ COALESCE = 334,
119
+ COLLATE = 335,
120
+ COLLATION = 336,
121
+ COLUMN = 337,
122
+ COLUMNS = 338,
123
+ COMMENT = 339,
124
+ COMMENTS = 340,
125
+ COMMIT = 341,
126
+ COMMITTED = 342,
127
+ COMPRESSION = 343,
128
+ CONCURRENTLY = 344,
129
+ CONFIGURATION = 345,
130
+ CONFLICT = 346,
131
+ CONNECTION = 347,
132
+ CONSTRAINT = 348,
133
+ CONSTRAINTS = 349,
134
+ CONTENT_P = 350,
135
+ CONTINUE_P = 351,
136
+ CONVERSION_P = 352,
137
+ COPY = 353,
138
+ COST = 354,
139
+ CREATE_P = 355,
140
+ CROSS = 356,
141
+ CSV = 357,
142
+ CUBE = 358,
143
+ CURRENT_P = 359,
144
+ CURSOR = 360,
145
+ CYCLE = 361,
146
+ DATA_P = 362,
147
+ DATABASE = 363,
148
+ DAY_P = 364,
149
+ DAYS_P = 365,
150
+ DEALLOCATE = 366,
151
+ DEC = 367,
152
+ DECADE_P = 368,
153
+ DECADES_P = 369,
154
+ DECIMAL_P = 370,
155
+ DECLARE = 371,
156
+ DEFAULT = 372,
157
+ DEFAULTS = 373,
158
+ DEFERRABLE = 374,
159
+ DEFERRED = 375,
160
+ DEFINER = 376,
161
+ DELETE_P = 377,
162
+ DELIMITER = 378,
163
+ DELIMITERS = 379,
164
+ DEPENDS = 380,
165
+ DESC_P = 381,
166
+ DESCRIBE = 382,
167
+ DETACH = 383,
168
+ DICTIONARY = 384,
169
+ DISABLE_P = 385,
170
+ DISCARD = 386,
171
+ DISTINCT = 387,
172
+ DO = 388,
173
+ DOCUMENT_P = 389,
174
+ DOMAIN_P = 390,
175
+ DOUBLE_P = 391,
176
+ DROP = 392,
177
+ EACH = 393,
178
+ ELSE = 394,
179
+ ENABLE_P = 395,
180
+ ENCODING = 396,
181
+ ENCRYPTED = 397,
182
+ END_P = 398,
183
+ ENUM_P = 399,
184
+ ESCAPE = 400,
185
+ EVENT = 401,
186
+ EXCEPT = 402,
187
+ EXCLUDE = 403,
188
+ EXCLUDING = 404,
189
+ EXCLUSIVE = 405,
190
+ EXECUTE = 406,
191
+ EXISTS = 407,
192
+ EXPLAIN = 408,
193
+ EXPORT_P = 409,
194
+ EXPORT_STATE = 410,
195
+ EXTENSION = 411,
196
+ EXTERNAL = 412,
197
+ EXTRACT = 413,
198
+ FALSE_P = 414,
199
+ FAMILY = 415,
200
+ FETCH = 416,
201
+ FILTER = 417,
202
+ FIRST_P = 418,
203
+ FLOAT_P = 419,
204
+ FOLLOWING = 420,
205
+ FOR = 421,
206
+ FORCE = 422,
207
+ FOREIGN = 423,
208
+ FORWARD = 424,
209
+ FREEZE = 425,
210
+ FROM = 426,
211
+ FULL = 427,
212
+ FUNCTION = 428,
213
+ FUNCTIONS = 429,
214
+ GENERATED = 430,
215
+ GLOB = 431,
216
+ GLOBAL = 432,
217
+ GRANT = 433,
218
+ GRANTED = 434,
219
+ GROUP_P = 435,
220
+ GROUPING = 436,
221
+ GROUPING_ID = 437,
222
+ GROUPS = 438,
223
+ HANDLER = 439,
224
+ HAVING = 440,
225
+ HEADER_P = 441,
226
+ HOLD = 442,
227
+ HOUR_P = 443,
228
+ HOURS_P = 444,
229
+ IDENTITY_P = 445,
230
+ IF_P = 446,
231
+ IGNORE_P = 447,
232
+ ILIKE = 448,
233
+ IMMEDIATE = 449,
234
+ IMMUTABLE = 450,
235
+ IMPLICIT_P = 451,
236
+ IMPORT_P = 452,
237
+ IN_P = 453,
238
+ INCLUDE_P = 454,
239
+ INCLUDING = 455,
240
+ INCREMENT = 456,
241
+ INDEX = 457,
242
+ INDEXES = 458,
243
+ INHERIT = 459,
244
+ INHERITS = 460,
245
+ INITIALLY = 461,
246
+ INLINE_P = 462,
247
+ INNER_P = 463,
248
+ INOUT = 464,
249
+ INPUT_P = 465,
250
+ INSENSITIVE = 466,
251
+ INSERT = 467,
252
+ INSTALL = 468,
253
+ INSTEAD = 469,
254
+ INT_P = 470,
255
+ INTEGER = 471,
256
+ INTERSECT = 472,
257
+ INTERVAL = 473,
258
+ INTO = 474,
259
+ INVOKER = 475,
260
+ IS = 476,
261
+ ISNULL = 477,
262
+ ISOLATION = 478,
263
+ JOIN = 479,
264
+ JSON = 480,
265
+ KEY = 481,
266
+ LABEL = 482,
267
+ LANGUAGE = 483,
268
+ LARGE_P = 484,
269
+ LAST_P = 485,
270
+ LATERAL_P = 486,
271
+ LEADING = 487,
272
+ LEAKPROOF = 488,
273
+ LEFT = 489,
274
+ LEVEL = 490,
275
+ LIKE = 491,
276
+ LIMIT = 492,
277
+ LISTEN = 493,
278
+ LOAD = 494,
279
+ LOCAL = 495,
280
+ LOCATION = 496,
281
+ LOCK_P = 497,
282
+ LOCKED = 498,
283
+ LOGGED = 499,
284
+ MACRO = 500,
285
+ MAP = 501,
286
+ MAPPING = 502,
287
+ MATCH = 503,
288
+ MATERIALIZED = 504,
289
+ MAXVALUE = 505,
290
+ METHOD = 506,
291
+ MICROSECOND_P = 507,
292
+ MICROSECONDS_P = 508,
293
+ MILLENNIA_P = 509,
294
+ MILLENNIUM_P = 510,
295
+ MILLISECOND_P = 511,
296
+ MILLISECONDS_P = 512,
297
+ MINUTE_P = 513,
298
+ MINUTES_P = 514,
299
+ MINVALUE = 515,
300
+ MODE = 516,
301
+ MONTH_P = 517,
302
+ MONTHS_P = 518,
303
+ MOVE = 519,
304
+ NAME_P = 520,
305
+ NAMES = 521,
306
+ NATIONAL = 522,
307
+ NATURAL = 523,
308
+ NCHAR = 524,
309
+ NEW = 525,
310
+ NEXT = 526,
311
+ NO = 527,
312
+ NONE = 528,
313
+ NOT = 529,
314
+ NOTHING = 530,
315
+ NOTIFY = 531,
316
+ NOTNULL = 532,
317
+ NOWAIT = 533,
318
+ NULL_P = 534,
319
+ NULLIF = 535,
320
+ NULLS_P = 536,
321
+ NUMERIC = 537,
322
+ OBJECT_P = 538,
323
+ OF = 539,
324
+ OFF = 540,
325
+ OFFSET = 541,
326
+ OIDS = 542,
327
+ OLD = 543,
328
+ ON = 544,
329
+ ONLY = 545,
330
+ OPERATOR = 546,
331
+ OPTION = 547,
332
+ OPTIONS = 548,
333
+ OR = 549,
334
+ ORDER = 550,
335
+ ORDINALITY = 551,
336
+ OTHERS = 552,
337
+ OUT_P = 553,
338
+ OUTER_P = 554,
339
+ OVER = 555,
340
+ OVERLAPS = 556,
341
+ OVERLAY = 557,
342
+ OVERRIDING = 558,
343
+ OWNED = 559,
344
+ OWNER = 560,
345
+ PARALLEL = 561,
346
+ PARSER = 562,
347
+ PARTIAL = 563,
348
+ PARTITION = 564,
349
+ PASSING = 565,
350
+ PASSWORD = 566,
351
+ PERCENT = 567,
352
+ PERSISTENT = 568,
353
+ PIVOT = 569,
354
+ PIVOT_LONGER = 570,
355
+ PIVOT_WIDER = 571,
356
+ PLACING = 572,
357
+ PLANS = 573,
358
+ POLICY = 574,
359
+ POSITION = 575,
360
+ POSITIONAL = 576,
361
+ PRAGMA_P = 577,
362
+ PRECEDING = 578,
363
+ PRECISION = 579,
364
+ PREPARE = 580,
365
+ PREPARED = 581,
366
+ PRESERVE = 582,
367
+ PRIMARY = 583,
368
+ PRIOR = 584,
369
+ PRIVILEGES = 585,
370
+ PROCEDURAL = 586,
371
+ PROCEDURE = 587,
372
+ PROGRAM = 588,
373
+ PUBLICATION = 589,
374
+ QUALIFY = 590,
375
+ QUOTE = 591,
376
+ RANGE = 592,
377
+ READ_P = 593,
378
+ REAL = 594,
379
+ REASSIGN = 595,
380
+ RECHECK = 596,
381
+ RECURSIVE = 597,
382
+ REF = 598,
383
+ REFERENCES = 599,
384
+ REFERENCING = 600,
385
+ REFRESH = 601,
386
+ REINDEX = 602,
387
+ RELATIVE_P = 603,
388
+ RELEASE = 604,
389
+ RENAME = 605,
390
+ REPEATABLE = 606,
391
+ REPLACE = 607,
392
+ REPLICA = 608,
393
+ RESET = 609,
394
+ RESPECT_P = 610,
395
+ RESTART = 611,
396
+ RESTRICT = 612,
397
+ RETURNING = 613,
398
+ RETURNS = 614,
399
+ REVOKE = 615,
400
+ RIGHT = 616,
401
+ ROLE = 617,
402
+ ROLLBACK = 618,
403
+ ROLLUP = 619,
404
+ ROW = 620,
405
+ ROWS = 621,
406
+ RULE = 622,
407
+ SAMPLE = 623,
408
+ SAVEPOINT = 624,
409
+ SCHEMA = 625,
410
+ SCHEMAS = 626,
411
+ SCOPE = 627,
412
+ SCROLL = 628,
413
+ SEARCH = 629,
414
+ SECOND_P = 630,
415
+ SECONDS_P = 631,
416
+ SECRET = 632,
417
+ SECURITY = 633,
418
+ SELECT = 634,
419
+ SEMI = 635,
420
+ SEQUENCE = 636,
421
+ SEQUENCES = 637,
422
+ SERIALIZABLE = 638,
423
+ SERVER = 639,
424
+ SESSION = 640,
425
+ SET = 641,
426
+ SETOF = 642,
427
+ SETS = 643,
428
+ SHARE = 644,
429
+ SHOW = 645,
430
+ SIMILAR = 646,
431
+ SIMPLE = 647,
432
+ SKIP = 648,
433
+ SMALLINT = 649,
434
+ SNAPSHOT = 650,
435
+ SOME = 651,
436
+ SQL_P = 652,
437
+ STABLE = 653,
438
+ STANDALONE_P = 654,
439
+ START = 655,
440
+ STATEMENT = 656,
441
+ STATISTICS = 657,
442
+ STDIN = 658,
443
+ STDOUT = 659,
444
+ STORAGE = 660,
445
+ STORED = 661,
446
+ STRICT_P = 662,
447
+ STRIP_P = 663,
448
+ STRUCT = 664,
449
+ SUBSCRIPTION = 665,
450
+ SUBSTRING = 666,
451
+ SUMMARIZE = 667,
452
+ SYMMETRIC = 668,
453
+ SYSID = 669,
454
+ SYSTEM_P = 670,
455
+ TABLE = 671,
456
+ TABLES = 672,
457
+ TABLESAMPLE = 673,
458
+ TABLESPACE = 674,
459
+ TEMP = 675,
460
+ TEMPLATE = 676,
461
+ TEMPORARY = 677,
462
+ TEXT_P = 678,
463
+ THEN = 679,
464
+ TIES = 680,
465
+ TIME = 681,
466
+ TIMESTAMP = 682,
467
+ TO = 683,
468
+ TRAILING = 684,
469
+ TRANSACTION = 685,
470
+ TRANSFORM = 686,
471
+ TREAT = 687,
472
+ TRIGGER = 688,
473
+ TRIM = 689,
474
+ TRUE_P = 690,
475
+ TRUNCATE = 691,
476
+ TRUSTED = 692,
477
+ TRY_CAST = 693,
478
+ TYPE_P = 694,
479
+ TYPES_P = 695,
480
+ UNBOUNDED = 696,
481
+ UNCOMMITTED = 697,
482
+ UNENCRYPTED = 698,
483
+ UNION = 699,
484
+ UNIQUE = 700,
485
+ UNKNOWN = 701,
486
+ UNLISTEN = 702,
487
+ UNLOGGED = 703,
488
+ UNPIVOT = 704,
489
+ UNTIL = 705,
490
+ UPDATE = 706,
491
+ USE_P = 707,
492
+ USER = 708,
493
+ USING = 709,
494
+ VACUUM = 710,
495
+ VALID = 711,
496
+ VALIDATE = 712,
497
+ VALIDATOR = 713,
498
+ VALUE_P = 714,
499
+ VALUES = 715,
500
+ VARCHAR = 716,
501
+ VARIADIC = 717,
502
+ VARYING = 718,
503
+ VERBOSE = 719,
504
+ VERSION_P = 720,
505
+ VIEW = 721,
506
+ VIEWS = 722,
507
+ VIRTUAL = 723,
508
+ VOLATILE = 724,
509
+ WEEK_P = 725,
510
+ WEEKS_P = 726,
511
+ WHEN = 727,
512
+ WHERE = 728,
513
+ WHITESPACE_P = 729,
514
+ WINDOW = 730,
515
+ WITH = 731,
516
+ WITHIN = 732,
517
+ WITHOUT = 733,
518
+ WORK = 734,
519
+ WRAPPER = 735,
520
+ WRITE_P = 736,
521
+ XML_P = 737,
522
+ XMLATTRIBUTES = 738,
523
+ XMLCONCAT = 739,
524
+ XMLELEMENT = 740,
525
+ XMLEXISTS = 741,
526
+ XMLFOREST = 742,
527
+ XMLNAMESPACES = 743,
528
+ XMLPARSE = 744,
529
+ XMLPI = 745,
530
+ XMLROOT = 746,
531
+ XMLSERIALIZE = 747,
532
+ XMLTABLE = 748,
533
+ YEAR_P = 749,
534
+ YEARS_P = 750,
535
+ YES_P = 751,
536
+ ZONE = 752,
537
+ NOT_LA = 753,
538
+ NULLS_LA = 754,
539
+ WITH_LA = 755,
540
+ POSTFIXOP = 756,
541
+ UMINUS = 757
542
+ };
559
543
  #endif
544
+ /* Tokens. */
545
+ #define IDENT 258
546
+ #define FCONST 259
547
+ #define SCONST 260
548
+ #define BCONST 261
549
+ #define XCONST 262
550
+ #define Op 263
551
+ #define ICONST 264
552
+ #define PARAM 265
553
+ #define TYPECAST 266
554
+ #define DOT_DOT 267
555
+ #define COLON_EQUALS 268
556
+ #define EQUALS_GREATER 269
557
+ #define INTEGER_DIVISION 270
558
+ #define POWER_OF 271
559
+ #define LAMBDA_ARROW 272
560
+ #define DOUBLE_ARROW 273
561
+ #define LESS_EQUALS 274
562
+ #define GREATER_EQUALS 275
563
+ #define NOT_EQUALS 276
564
+ #define ABORT_P 277
565
+ #define ABSOLUTE_P 278
566
+ #define ACCESS 279
567
+ #define ACTION 280
568
+ #define ADD_P 281
569
+ #define ADMIN 282
570
+ #define AFTER 283
571
+ #define AGGREGATE 284
572
+ #define ALL 285
573
+ #define ALSO 286
574
+ #define ALTER 287
575
+ #define ALWAYS 288
576
+ #define ANALYSE 289
577
+ #define ANALYZE 290
578
+ #define AND 291
579
+ #define ANTI 292
580
+ #define ANY 293
581
+ #define ARRAY 294
582
+ #define AS 295
583
+ #define ASC_P 296
584
+ #define ASOF 297
585
+ #define ASSERTION 298
586
+ #define ASSIGNMENT 299
587
+ #define ASYMMETRIC 300
588
+ #define AT 301
589
+ #define ATTACH 302
590
+ #define ATTRIBUTE 303
591
+ #define AUTHORIZATION 304
592
+ #define BACKWARD 305
593
+ #define BEFORE 306
594
+ #define BEGIN_P 307
595
+ #define BETWEEN 308
596
+ #define BIGINT 309
597
+ #define BINARY 310
598
+ #define BIT 311
599
+ #define BOOLEAN_P 312
600
+ #define BOTH 313
601
+ #define BY 314
602
+ #define CACHE 315
603
+ #define CALL_P 316
604
+ #define CALLED 317
605
+ #define CASCADE 318
606
+ #define CASCADED 319
607
+ #define CASE 320
608
+ #define CAST 321
609
+ #define CATALOG_P 322
610
+ #define CENTURIES_P 323
611
+ #define CENTURY_P 324
612
+ #define CHAIN 325
613
+ #define CHAR_P 326
614
+ #define CHARACTER 327
615
+ #define CHARACTERISTICS 328
616
+ #define CHECK_P 329
617
+ #define CHECKPOINT 330
618
+ #define CLASS 331
619
+ #define CLOSE 332
620
+ #define CLUSTER 333
621
+ #define COALESCE 334
622
+ #define COLLATE 335
623
+ #define COLLATION 336
624
+ #define COLUMN 337
625
+ #define COLUMNS 338
626
+ #define COMMENT 339
627
+ #define COMMENTS 340
628
+ #define COMMIT 341
629
+ #define COMMITTED 342
630
+ #define COMPRESSION 343
631
+ #define CONCURRENTLY 344
632
+ #define CONFIGURATION 345
633
+ #define CONFLICT 346
634
+ #define CONNECTION 347
635
+ #define CONSTRAINT 348
636
+ #define CONSTRAINTS 349
637
+ #define CONTENT_P 350
638
+ #define CONTINUE_P 351
639
+ #define CONVERSION_P 352
640
+ #define COPY 353
641
+ #define COST 354
642
+ #define CREATE_P 355
643
+ #define CROSS 356
644
+ #define CSV 357
645
+ #define CUBE 358
646
+ #define CURRENT_P 359
647
+ #define CURSOR 360
648
+ #define CYCLE 361
649
+ #define DATA_P 362
650
+ #define DATABASE 363
651
+ #define DAY_P 364
652
+ #define DAYS_P 365
653
+ #define DEALLOCATE 366
654
+ #define DEC 367
655
+ #define DECADE_P 368
656
+ #define DECADES_P 369
657
+ #define DECIMAL_P 370
658
+ #define DECLARE 371
659
+ #define DEFAULT 372
660
+ #define DEFAULTS 373
661
+ #define DEFERRABLE 374
662
+ #define DEFERRED 375
663
+ #define DEFINER 376
664
+ #define DELETE_P 377
665
+ #define DELIMITER 378
666
+ #define DELIMITERS 379
667
+ #define DEPENDS 380
668
+ #define DESC_P 381
669
+ #define DESCRIBE 382
670
+ #define DETACH 383
671
+ #define DICTIONARY 384
672
+ #define DISABLE_P 385
673
+ #define DISCARD 386
674
+ #define DISTINCT 387
675
+ #define DO 388
676
+ #define DOCUMENT_P 389
677
+ #define DOMAIN_P 390
678
+ #define DOUBLE_P 391
679
+ #define DROP 392
680
+ #define EACH 393
681
+ #define ELSE 394
682
+ #define ENABLE_P 395
683
+ #define ENCODING 396
684
+ #define ENCRYPTED 397
685
+ #define END_P 398
686
+ #define ENUM_P 399
687
+ #define ESCAPE 400
688
+ #define EVENT 401
689
+ #define EXCEPT 402
690
+ #define EXCLUDE 403
691
+ #define EXCLUDING 404
692
+ #define EXCLUSIVE 405
693
+ #define EXECUTE 406
694
+ #define EXISTS 407
695
+ #define EXPLAIN 408
696
+ #define EXPORT_P 409
697
+ #define EXPORT_STATE 410
698
+ #define EXTENSION 411
699
+ #define EXTERNAL 412
700
+ #define EXTRACT 413
701
+ #define FALSE_P 414
702
+ #define FAMILY 415
703
+ #define FETCH 416
704
+ #define FILTER 417
705
+ #define FIRST_P 418
706
+ #define FLOAT_P 419
707
+ #define FOLLOWING 420
708
+ #define FOR 421
709
+ #define FORCE 422
710
+ #define FOREIGN 423
711
+ #define FORWARD 424
712
+ #define FREEZE 425
713
+ #define FROM 426
714
+ #define FULL 427
715
+ #define FUNCTION 428
716
+ #define FUNCTIONS 429
717
+ #define GENERATED 430
718
+ #define GLOB 431
719
+ #define GLOBAL 432
720
+ #define GRANT 433
721
+ #define GRANTED 434
722
+ #define GROUP_P 435
723
+ #define GROUPING 436
724
+ #define GROUPING_ID 437
725
+ #define GROUPS 438
726
+ #define HANDLER 439
727
+ #define HAVING 440
728
+ #define HEADER_P 441
729
+ #define HOLD 442
730
+ #define HOUR_P 443
731
+ #define HOURS_P 444
732
+ #define IDENTITY_P 445
733
+ #define IF_P 446
734
+ #define IGNORE_P 447
735
+ #define ILIKE 448
736
+ #define IMMEDIATE 449
737
+ #define IMMUTABLE 450
738
+ #define IMPLICIT_P 451
739
+ #define IMPORT_P 452
740
+ #define IN_P 453
741
+ #define INCLUDE_P 454
742
+ #define INCLUDING 455
743
+ #define INCREMENT 456
744
+ #define INDEX 457
745
+ #define INDEXES 458
746
+ #define INHERIT 459
747
+ #define INHERITS 460
748
+ #define INITIALLY 461
749
+ #define INLINE_P 462
750
+ #define INNER_P 463
751
+ #define INOUT 464
752
+ #define INPUT_P 465
753
+ #define INSENSITIVE 466
754
+ #define INSERT 467
755
+ #define INSTALL 468
756
+ #define INSTEAD 469
757
+ #define INT_P 470
758
+ #define INTEGER 471
759
+ #define INTERSECT 472
760
+ #define INTERVAL 473
761
+ #define INTO 474
762
+ #define INVOKER 475
763
+ #define IS 476
764
+ #define ISNULL 477
765
+ #define ISOLATION 478
766
+ #define JOIN 479
767
+ #define JSON 480
768
+ #define KEY 481
769
+ #define LABEL 482
770
+ #define LANGUAGE 483
771
+ #define LARGE_P 484
772
+ #define LAST_P 485
773
+ #define LATERAL_P 486
774
+ #define LEADING 487
775
+ #define LEAKPROOF 488
776
+ #define LEFT 489
777
+ #define LEVEL 490
778
+ #define LIKE 491
779
+ #define LIMIT 492
780
+ #define LISTEN 493
781
+ #define LOAD 494
782
+ #define LOCAL 495
783
+ #define LOCATION 496
784
+ #define LOCK_P 497
785
+ #define LOCKED 498
786
+ #define LOGGED 499
787
+ #define MACRO 500
788
+ #define MAP 501
789
+ #define MAPPING 502
790
+ #define MATCH 503
791
+ #define MATERIALIZED 504
792
+ #define MAXVALUE 505
793
+ #define METHOD 506
794
+ #define MICROSECOND_P 507
795
+ #define MICROSECONDS_P 508
796
+ #define MILLENNIA_P 509
797
+ #define MILLENNIUM_P 510
798
+ #define MILLISECOND_P 511
799
+ #define MILLISECONDS_P 512
800
+ #define MINUTE_P 513
801
+ #define MINUTES_P 514
802
+ #define MINVALUE 515
803
+ #define MODE 516
804
+ #define MONTH_P 517
805
+ #define MONTHS_P 518
806
+ #define MOVE 519
807
+ #define NAME_P 520
808
+ #define NAMES 521
809
+ #define NATIONAL 522
810
+ #define NATURAL 523
811
+ #define NCHAR 524
812
+ #define NEW 525
813
+ #define NEXT 526
814
+ #define NO 527
815
+ #define NONE 528
816
+ #define NOT 529
817
+ #define NOTHING 530
818
+ #define NOTIFY 531
819
+ #define NOTNULL 532
820
+ #define NOWAIT 533
821
+ #define NULL_P 534
822
+ #define NULLIF 535
823
+ #define NULLS_P 536
824
+ #define NUMERIC 537
825
+ #define OBJECT_P 538
826
+ #define OF 539
827
+ #define OFF 540
828
+ #define OFFSET 541
829
+ #define OIDS 542
830
+ #define OLD 543
831
+ #define ON 544
832
+ #define ONLY 545
833
+ #define OPERATOR 546
834
+ #define OPTION 547
835
+ #define OPTIONS 548
836
+ #define OR 549
837
+ #define ORDER 550
838
+ #define ORDINALITY 551
839
+ #define OTHERS 552
840
+ #define OUT_P 553
841
+ #define OUTER_P 554
842
+ #define OVER 555
843
+ #define OVERLAPS 556
844
+ #define OVERLAY 557
845
+ #define OVERRIDING 558
846
+ #define OWNED 559
847
+ #define OWNER 560
848
+ #define PARALLEL 561
849
+ #define PARSER 562
850
+ #define PARTIAL 563
851
+ #define PARTITION 564
852
+ #define PASSING 565
853
+ #define PASSWORD 566
854
+ #define PERCENT 567
855
+ #define PERSISTENT 568
856
+ #define PIVOT 569
857
+ #define PIVOT_LONGER 570
858
+ #define PIVOT_WIDER 571
859
+ #define PLACING 572
860
+ #define PLANS 573
861
+ #define POLICY 574
862
+ #define POSITION 575
863
+ #define POSITIONAL 576
864
+ #define PRAGMA_P 577
865
+ #define PRECEDING 578
866
+ #define PRECISION 579
867
+ #define PREPARE 580
868
+ #define PREPARED 581
869
+ #define PRESERVE 582
870
+ #define PRIMARY 583
871
+ #define PRIOR 584
872
+ #define PRIVILEGES 585
873
+ #define PROCEDURAL 586
874
+ #define PROCEDURE 587
875
+ #define PROGRAM 588
876
+ #define PUBLICATION 589
877
+ #define QUALIFY 590
878
+ #define QUOTE 591
879
+ #define RANGE 592
880
+ #define READ_P 593
881
+ #define REAL 594
882
+ #define REASSIGN 595
883
+ #define RECHECK 596
884
+ #define RECURSIVE 597
885
+ #define REF 598
886
+ #define REFERENCES 599
887
+ #define REFERENCING 600
888
+ #define REFRESH 601
889
+ #define REINDEX 602
890
+ #define RELATIVE_P 603
891
+ #define RELEASE 604
892
+ #define RENAME 605
893
+ #define REPEATABLE 606
894
+ #define REPLACE 607
895
+ #define REPLICA 608
896
+ #define RESET 609
897
+ #define RESPECT_P 610
898
+ #define RESTART 611
899
+ #define RESTRICT 612
900
+ #define RETURNING 613
901
+ #define RETURNS 614
902
+ #define REVOKE 615
903
+ #define RIGHT 616
904
+ #define ROLE 617
905
+ #define ROLLBACK 618
906
+ #define ROLLUP 619
907
+ #define ROW 620
908
+ #define ROWS 621
909
+ #define RULE 622
910
+ #define SAMPLE 623
911
+ #define SAVEPOINT 624
912
+ #define SCHEMA 625
913
+ #define SCHEMAS 626
914
+ #define SCOPE 627
915
+ #define SCROLL 628
916
+ #define SEARCH 629
917
+ #define SECOND_P 630
918
+ #define SECONDS_P 631
919
+ #define SECRET 632
920
+ #define SECURITY 633
921
+ #define SELECT 634
922
+ #define SEMI 635
923
+ #define SEQUENCE 636
924
+ #define SEQUENCES 637
925
+ #define SERIALIZABLE 638
926
+ #define SERVER 639
927
+ #define SESSION 640
928
+ #define SET 641
929
+ #define SETOF 642
930
+ #define SETS 643
931
+ #define SHARE 644
932
+ #define SHOW 645
933
+ #define SIMILAR 646
934
+ #define SIMPLE 647
935
+ #define SKIP 648
936
+ #define SMALLINT 649
937
+ #define SNAPSHOT 650
938
+ #define SOME 651
939
+ #define SQL_P 652
940
+ #define STABLE 653
941
+ #define STANDALONE_P 654
942
+ #define START 655
943
+ #define STATEMENT 656
944
+ #define STATISTICS 657
945
+ #define STDIN 658
946
+ #define STDOUT 659
947
+ #define STORAGE 660
948
+ #define STORED 661
949
+ #define STRICT_P 662
950
+ #define STRIP_P 663
951
+ #define STRUCT 664
952
+ #define SUBSCRIPTION 665
953
+ #define SUBSTRING 666
954
+ #define SUMMARIZE 667
955
+ #define SYMMETRIC 668
956
+ #define SYSID 669
957
+ #define SYSTEM_P 670
958
+ #define TABLE 671
959
+ #define TABLES 672
960
+ #define TABLESAMPLE 673
961
+ #define TABLESPACE 674
962
+ #define TEMP 675
963
+ #define TEMPLATE 676
964
+ #define TEMPORARY 677
965
+ #define TEXT_P 678
966
+ #define THEN 679
967
+ #define TIES 680
968
+ #define TIME 681
969
+ #define TIMESTAMP 682
970
+ #define TO 683
971
+ #define TRAILING 684
972
+ #define TRANSACTION 685
973
+ #define TRANSFORM 686
974
+ #define TREAT 687
975
+ #define TRIGGER 688
976
+ #define TRIM 689
977
+ #define TRUE_P 690
978
+ #define TRUNCATE 691
979
+ #define TRUSTED 692
980
+ #define TRY_CAST 693
981
+ #define TYPE_P 694
982
+ #define TYPES_P 695
983
+ #define UNBOUNDED 696
984
+ #define UNCOMMITTED 697
985
+ #define UNENCRYPTED 698
986
+ #define UNION 699
987
+ #define UNIQUE 700
988
+ #define UNKNOWN 701
989
+ #define UNLISTEN 702
990
+ #define UNLOGGED 703
991
+ #define UNPIVOT 704
992
+ #define UNTIL 705
993
+ #define UPDATE 706
994
+ #define USE_P 707
995
+ #define USER 708
996
+ #define USING 709
997
+ #define VACUUM 710
998
+ #define VALID 711
999
+ #define VALIDATE 712
1000
+ #define VALIDATOR 713
1001
+ #define VALUE_P 714
1002
+ #define VALUES 715
1003
+ #define VARCHAR 716
1004
+ #define VARIADIC 717
1005
+ #define VARYING 718
1006
+ #define VERBOSE 719
1007
+ #define VERSION_P 720
1008
+ #define VIEW 721
1009
+ #define VIEWS 722
1010
+ #define VIRTUAL 723
1011
+ #define VOLATILE 724
1012
+ #define WEEK_P 725
1013
+ #define WEEKS_P 726
1014
+ #define WHEN 727
1015
+ #define WHERE 728
1016
+ #define WHITESPACE_P 729
1017
+ #define WINDOW 730
1018
+ #define WITH 731
1019
+ #define WITHIN 732
1020
+ #define WITHOUT 733
1021
+ #define WORK 734
1022
+ #define WRAPPER 735
1023
+ #define WRITE_P 736
1024
+ #define XML_P 737
1025
+ #define XMLATTRIBUTES 738
1026
+ #define XMLCONCAT 739
1027
+ #define XMLELEMENT 740
1028
+ #define XMLEXISTS 741
1029
+ #define XMLFOREST 742
1030
+ #define XMLNAMESPACES 743
1031
+ #define XMLPARSE 744
1032
+ #define XMLPI 745
1033
+ #define XMLROOT 746
1034
+ #define XMLSERIALIZE 747
1035
+ #define XMLTABLE 748
1036
+ #define YEAR_P 749
1037
+ #define YEARS_P 750
1038
+ #define YES_P 751
1039
+ #define ZONE 752
1040
+ #define NOT_LA 753
1041
+ #define NULLS_LA 754
1042
+ #define WITH_LA 755
1043
+ #define POSTFIXOP 756
1044
+ #define UMINUS 757
1045
+
1046
+
1047
+
560
1048
 
561
- /* Value type. */
562
1049
  #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
563
- union YYSTYPE
564
- {
1050
+ typedef union YYSTYPE
565
1051
  #line 14 "third_party/libpg_query/grammar/grammar.y"
566
-
1052
+ {
567
1053
  core_YYSTYPE core_yystype;
568
1054
  /* these fields must match core_YYSTYPE: */
569
1055
  int ival;
@@ -609,33 +1095,28 @@ union YYSTYPE
609
1095
  PGSubLinkType subquerytype;
610
1096
  PGViewCheckOption viewcheckoption;
611
1097
  PGInsertColumnOrder bynameorposition;
612
-
613
- #line 614 "third_party/libpg_query/grammar/grammar_out.hpp"
614
-
615
- };
616
- typedef union YYSTYPE YYSTYPE;
617
- # define YYSTYPE_IS_TRIVIAL 1
1098
+ }
1099
+ /* Line 1529 of yacc.c. */
1100
+ #line 1101 "third_party/libpg_query/grammar/grammar_out.hpp"
1101
+ YYSTYPE;
1102
+ # define yystype YYSTYPE /* obsolescent; will be withdrawn */
618
1103
  # define YYSTYPE_IS_DECLARED 1
1104
+ # define YYSTYPE_IS_TRIVIAL 1
619
1105
  #endif
620
1106
 
621
- /* Location type. */
1107
+
1108
+
622
1109
  #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
623
- typedef struct YYLTYPE YYLTYPE;
624
- struct YYLTYPE
1110
+ typedef struct YYLTYPE
625
1111
  {
626
1112
  int first_line;
627
1113
  int first_column;
628
1114
  int last_line;
629
1115
  int last_column;
630
- };
1116
+ } YYLTYPE;
1117
+ # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
631
1118
  # define YYLTYPE_IS_DECLARED 1
632
1119
  # define YYLTYPE_IS_TRIVIAL 1
633
1120
  #endif
634
1121
 
635
1122
 
636
-
637
-
638
- int base_yyparse (core_yyscan_t yyscanner);
639
-
640
-
641
- #endif /* !YY_BASE_YY_THIRD_PARTY_LIBPG_QUERY_GRAMMAR_GRAMMAR_OUT_HPP_INCLUDED */