duckdb 0.7.2-dev1457.0 → 0.7.2-dev1533.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (593) hide show
  1. package/binding.gyp +8 -8
  2. package/package.json +1 -1
  3. package/src/duckdb/extension/icu/icu-dateadd.cpp +2 -2
  4. package/src/duckdb/extension/icu/icu-datepart.cpp +3 -3
  5. package/src/duckdb/extension/icu/icu-datesub.cpp +2 -2
  6. package/src/duckdb/extension/icu/icu-datetrunc.cpp +1 -1
  7. package/src/duckdb/extension/icu/icu-extension.cpp +3 -3
  8. package/src/duckdb/extension/icu/icu-list-range.cpp +1 -1
  9. package/src/duckdb/extension/icu/icu-makedate.cpp +1 -1
  10. package/src/duckdb/extension/icu/icu-strptime.cpp +7 -7
  11. package/src/duckdb/extension/icu/icu-timebucket.cpp +6 -6
  12. package/src/duckdb/extension/icu/icu-timezone.cpp +4 -4
  13. package/src/duckdb/extension/json/include/json_executors.hpp +2 -2
  14. package/src/duckdb/extension/json/json_functions/copy_json.cpp +4 -4
  15. package/src/duckdb/extension/json/json_functions/json_create.cpp +3 -3
  16. package/src/duckdb/extension/json/json_functions/json_serialize_sql.cpp +3 -3
  17. package/src/duckdb/extension/json/json_functions.cpp +2 -2
  18. package/src/duckdb/extension/parquet/parquet-extension.cpp +28 -28
  19. package/src/duckdb/extension/parquet/parquet_metadata.cpp +3 -3
  20. package/src/duckdb/src/catalog/catalog_entry/duck_index_entry.cpp +2 -2
  21. package/src/duckdb/src/catalog/catalog_entry/duck_schema_entry.cpp +9 -9
  22. package/src/duckdb/src/catalog/catalog_entry/duck_table_entry.cpp +17 -17
  23. package/src/duckdb/src/catalog/catalog_entry/index_catalog_entry.cpp +3 -3
  24. package/src/duckdb/src/catalog/catalog_entry/scalar_macro_catalog_entry.cpp +2 -2
  25. package/src/duckdb/src/catalog/catalog_entry/schema_catalog_entry.cpp +2 -2
  26. package/src/duckdb/src/catalog/catalog_entry/sequence_catalog_entry.cpp +2 -2
  27. package/src/duckdb/src/catalog/catalog_entry/table_catalog_entry.cpp +5 -5
  28. package/src/duckdb/src/catalog/catalog_entry/type_catalog_entry.cpp +2 -2
  29. package/src/duckdb/src/catalog/catalog_entry/view_catalog_entry.cpp +3 -3
  30. package/src/duckdb/src/catalog/catalog_entry.cpp +2 -2
  31. package/src/duckdb/src/catalog/catalog_set.cpp +28 -28
  32. package/src/duckdb/src/catalog/default/default_functions.cpp +2 -1
  33. package/src/duckdb/src/catalog/dependency_manager.cpp +4 -4
  34. package/src/duckdb/src/common/enums/logical_operator_type.cpp +2 -0
  35. package/src/duckdb/src/common/enums/physical_operator_type.cpp +2 -0
  36. package/src/duckdb/src/common/hive_partitioning.cpp +1 -1
  37. package/src/duckdb/src/common/multi_file_reader.cpp +1 -1
  38. package/src/duckdb/src/common/row_operations/row_aggregate.cpp +3 -0
  39. package/src/duckdb/src/common/string_util.cpp +24 -2
  40. package/src/duckdb/src/common/tree_renderer.cpp +2 -4
  41. package/src/duckdb/src/common/types.cpp +3 -1
  42. package/src/duckdb/src/execution/column_binding_resolver.cpp +5 -5
  43. package/src/duckdb/src/execution/expression_executor.cpp +4 -3
  44. package/src/duckdb/src/execution/expression_executor_state.cpp +1 -1
  45. package/src/duckdb/src/execution/index/art/art.cpp +6 -8
  46. package/src/duckdb/src/execution/operator/aggregate/distinct_aggregate_data.cpp +7 -7
  47. package/src/duckdb/src/execution/operator/aggregate/grouped_aggregate_data.cpp +2 -2
  48. package/src/duckdb/src/execution/operator/aggregate/physical_hash_aggregate.cpp +33 -33
  49. package/src/duckdb/src/execution/operator/aggregate/physical_perfecthash_aggregate.cpp +13 -13
  50. package/src/duckdb/src/execution/operator/aggregate/physical_streaming_window.cpp +3 -3
  51. package/src/duckdb/src/execution/operator/aggregate/physical_ungrouped_aggregate.cpp +20 -20
  52. package/src/duckdb/src/execution/operator/aggregate/physical_window.cpp +12 -12
  53. package/src/duckdb/src/execution/operator/helper/physical_batch_collector.cpp +5 -5
  54. package/src/duckdb/src/execution/operator/helper/physical_explain_analyze.cpp +2 -2
  55. package/src/duckdb/src/execution/operator/helper/physical_limit.cpp +5 -5
  56. package/src/duckdb/src/execution/operator/helper/physical_limit_percent.cpp +4 -4
  57. package/src/duckdb/src/execution/operator/helper/physical_materialized_collector.cpp +4 -4
  58. package/src/duckdb/src/execution/operator/helper/physical_reservoir_sample.cpp +2 -2
  59. package/src/duckdb/src/execution/operator/helper/physical_streaming_limit.cpp +2 -2
  60. package/src/duckdb/src/execution/operator/helper/physical_streaming_sample.cpp +2 -2
  61. package/src/duckdb/src/execution/operator/helper/physical_vacuum.cpp +4 -4
  62. package/src/duckdb/src/execution/operator/join/physical_blockwise_nl_join.cpp +8 -8
  63. package/src/duckdb/src/execution/operator/join/physical_cross_product.cpp +3 -3
  64. package/src/duckdb/src/execution/operator/join/physical_delim_join.cpp +3 -3
  65. package/src/duckdb/src/execution/operator/join/physical_hash_join.cpp +12 -12
  66. package/src/duckdb/src/execution/operator/join/physical_iejoin.cpp +12 -12
  67. package/src/duckdb/src/execution/operator/join/physical_index_join.cpp +6 -5
  68. package/src/duckdb/src/execution/operator/join/physical_join.cpp +2 -2
  69. package/src/duckdb/src/execution/operator/join/physical_nested_loop_join.cpp +13 -13
  70. package/src/duckdb/src/execution/operator/join/physical_piecewise_merge_join.cpp +10 -10
  71. package/src/duckdb/src/execution/operator/join/physical_positional_join.cpp +3 -3
  72. package/src/duckdb/src/execution/operator/order/physical_order.cpp +11 -11
  73. package/src/duckdb/src/execution/operator/order/physical_top_n.cpp +6 -6
  74. package/src/duckdb/src/execution/operator/persistent/physical_batch_insert.cpp +7 -7
  75. package/src/duckdb/src/execution/operator/persistent/physical_copy_to_file.cpp +8 -8
  76. package/src/duckdb/src/execution/operator/persistent/physical_delete.cpp +5 -5
  77. package/src/duckdb/src/execution/operator/persistent/physical_export.cpp +1 -1
  78. package/src/duckdb/src/execution/operator/persistent/physical_insert.cpp +8 -8
  79. package/src/duckdb/src/execution/operator/persistent/physical_update.cpp +7 -7
  80. package/src/duckdb/src/execution/operator/projection/physical_pivot.cpp +81 -0
  81. package/src/duckdb/src/execution/operator/projection/physical_tableinout_function.cpp +5 -5
  82. package/src/duckdb/src/execution/operator/projection/physical_unnest.cpp +4 -5
  83. package/src/duckdb/src/execution/operator/scan/physical_column_data_scan.cpp +1 -1
  84. package/src/duckdb/src/execution/operator/scan/physical_positional_scan.cpp +4 -4
  85. package/src/duckdb/src/execution/operator/scan/physical_table_scan.cpp +7 -7
  86. package/src/duckdb/src/execution/operator/schema/physical_alter.cpp +1 -1
  87. package/src/duckdb/src/execution/operator/schema/physical_attach.cpp +1 -1
  88. package/src/duckdb/src/execution/operator/schema/physical_create_function.cpp +1 -1
  89. package/src/duckdb/src/execution/operator/schema/physical_create_index.cpp +8 -7
  90. package/src/duckdb/src/execution/operator/schema/physical_create_schema.cpp +1 -1
  91. package/src/duckdb/src/execution/operator/schema/physical_create_sequence.cpp +1 -1
  92. package/src/duckdb/src/execution/operator/schema/physical_create_table.cpp +1 -1
  93. package/src/duckdb/src/execution/operator/schema/physical_create_type.cpp +3 -3
  94. package/src/duckdb/src/execution/operator/schema/physical_create_view.cpp +1 -1
  95. package/src/duckdb/src/execution/operator/schema/physical_detach.cpp +1 -1
  96. package/src/duckdb/src/execution/operator/schema/physical_drop.cpp +1 -1
  97. package/src/duckdb/src/execution/operator/set/physical_recursive_cte.cpp +2 -2
  98. package/src/duckdb/src/execution/physical_operator.cpp +2 -2
  99. package/src/duckdb/src/execution/physical_plan/plan_aggregate.cpp +4 -4
  100. package/src/duckdb/src/execution/physical_plan/plan_comparison_join.cpp +2 -2
  101. package/src/duckdb/src/execution/physical_plan/plan_create_index.cpp +1 -1
  102. package/src/duckdb/src/execution/physical_plan/plan_delete.cpp +1 -1
  103. package/src/duckdb/src/execution/physical_plan/plan_delim_join.cpp +2 -2
  104. package/src/duckdb/src/execution/physical_plan/plan_distinct.cpp +4 -1
  105. package/src/duckdb/src/execution/physical_plan/plan_pivot.cpp +14 -0
  106. package/src/duckdb/src/execution/physical_plan/plan_projection.cpp +1 -1
  107. package/src/duckdb/src/execution/physical_plan/plan_window.cpp +8 -8
  108. package/src/duckdb/src/execution/physical_plan_generator.cpp +49 -42
  109. package/src/duckdb/src/execution/radix_partitioned_hashtable.cpp +14 -14
  110. package/src/duckdb/src/function/aggregate/algebraic/avg.cpp +2 -2
  111. package/src/duckdb/src/function/aggregate/distributive/bitstring_agg.cpp +1 -1
  112. package/src/duckdb/src/function/aggregate/distributive/string_agg.cpp +2 -2
  113. package/src/duckdb/src/function/aggregate/holistic/approximate_quantile.cpp +1 -1
  114. package/src/duckdb/src/function/aggregate/holistic/quantile.cpp +1 -1
  115. package/src/duckdb/src/function/aggregate/holistic/reservoir_quantile.cpp +1 -1
  116. package/src/duckdb/src/function/aggregate/nested/list.cpp +3 -3
  117. package/src/duckdb/src/function/cast/enum_casts.cpp +3 -3
  118. package/src/duckdb/src/function/cast/list_casts.cpp +2 -2
  119. package/src/duckdb/src/function/cast/string_cast.cpp +6 -6
  120. package/src/duckdb/src/function/cast/struct_cast.cpp +4 -4
  121. package/src/duckdb/src/function/cast/union_casts.cpp +6 -6
  122. package/src/duckdb/src/function/function.cpp +4 -4
  123. package/src/duckdb/src/function/function_binder.cpp +2 -1
  124. package/src/duckdb/src/function/macro_function.cpp +3 -3
  125. package/src/duckdb/src/function/pragma/pragma_queries.cpp +1 -1
  126. package/src/duckdb/src/function/pragma_function.cpp +1 -1
  127. package/src/duckdb/src/function/scalar/date/date_part.cpp +1 -1
  128. package/src/duckdb/src/function/scalar/date/strftime.cpp +6 -6
  129. package/src/duckdb/src/function/scalar/generic/alias.cpp +1 -1
  130. package/src/duckdb/src/function/scalar/generic/constant_or_null.cpp +3 -3
  131. package/src/duckdb/src/function/scalar/generic/current_setting.cpp +2 -2
  132. package/src/duckdb/src/function/scalar/generic/stats.cpp +3 -3
  133. package/src/duckdb/src/function/scalar/list/list_aggregates.cpp +5 -5
  134. package/src/duckdb/src/function/scalar/list/list_lambdas.cpp +3 -3
  135. package/src/duckdb/src/function/scalar/list/list_sort.cpp +3 -3
  136. package/src/duckdb/src/function/scalar/math/numeric.cpp +3 -3
  137. package/src/duckdb/src/function/scalar/math/random.cpp +2 -2
  138. package/src/duckdb/src/function/scalar/math/setseed.cpp +2 -2
  139. package/src/duckdb/src/function/scalar/operators/arithmetic.cpp +2 -2
  140. package/src/duckdb/src/function/scalar/sequence/nextval.cpp +4 -4
  141. package/src/duckdb/src/function/scalar/string/like.cpp +1 -1
  142. package/src/duckdb/src/function/scalar/string/regexp/regexp_extract_all.cpp +5 -5
  143. package/src/duckdb/src/function/scalar/string/regexp.cpp +11 -11
  144. package/src/duckdb/src/function/scalar/string/string_split.cpp +3 -3
  145. package/src/duckdb/src/function/scalar/struct/struct_extract.cpp +3 -3
  146. package/src/duckdb/src/function/scalar/struct/struct_pack.cpp +2 -2
  147. package/src/duckdb/src/function/scalar/system/aggregate_export.cpp +2 -2
  148. package/src/duckdb/src/function/scalar/union/union_extract.cpp +2 -2
  149. package/src/duckdb/src/function/scalar_macro_function.cpp +3 -3
  150. package/src/duckdb/src/function/table/arrow.cpp +5 -5
  151. package/src/duckdb/src/function/table/checkpoint.cpp +1 -1
  152. package/src/duckdb/src/function/table/glob.cpp +1 -1
  153. package/src/duckdb/src/function/table/pragma_detailed_profiling_output.cpp +1 -1
  154. package/src/duckdb/src/function/table/pragma_last_profiling_output.cpp +1 -1
  155. package/src/duckdb/src/function/table/range.cpp +5 -5
  156. package/src/duckdb/src/function/table/read_csv.cpp +10 -10
  157. package/src/duckdb/src/function/table/repeat.cpp +1 -1
  158. package/src/duckdb/src/function/table/system/duckdb_constraints.cpp +12 -12
  159. package/src/duckdb/src/function/table/system/duckdb_databases.cpp +1 -1
  160. package/src/duckdb/src/function/table/system/duckdb_functions.cpp +2 -2
  161. package/src/duckdb/src/function/table/system/duckdb_indexes.cpp +1 -1
  162. package/src/duckdb/src/function/table/system/duckdb_sequences.cpp +1 -1
  163. package/src/duckdb/src/function/table/system/duckdb_tables.cpp +2 -2
  164. package/src/duckdb/src/function/table/system/duckdb_views.cpp +1 -1
  165. package/src/duckdb/src/function/table/system/pragma_storage_info.cpp +1 -1
  166. package/src/duckdb/src/function/table/system/pragma_table_info.cpp +3 -3
  167. package/src/duckdb/src/function/table/system/test_vector_types.cpp +1 -1
  168. package/src/duckdb/src/function/table/table_scan.cpp +31 -31
  169. package/src/duckdb/src/function/table/unnest.cpp +4 -4
  170. package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
  171. package/src/duckdb/src/function/table_macro_function.cpp +2 -2
  172. package/src/duckdb/src/include/duckdb/catalog/catalog.hpp +13 -0
  173. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/duck_index_entry.hpp +2 -2
  174. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/duck_table_entry.hpp +1 -1
  175. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/index_catalog_entry.hpp +4 -4
  176. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/macro_catalog_entry.hpp +3 -2
  177. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/scalar_macro_catalog_entry.hpp +1 -1
  178. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/schema_catalog_entry.hpp +2 -2
  179. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/sequence_catalog_entry.hpp +2 -2
  180. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/table_catalog_entry.hpp +2 -2
  181. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/table_macro_catalog_entry.hpp +1 -1
  182. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/type_catalog_entry.hpp +2 -2
  183. package/src/duckdb/src/include/duckdb/catalog/catalog_entry/view_catalog_entry.hpp +3 -3
  184. package/src/duckdb/src/include/duckdb/catalog/catalog_entry.hpp +14 -3
  185. package/src/duckdb/src/include/duckdb/catalog/catalog_set.hpp +5 -5
  186. package/src/duckdb/src/include/duckdb/common/case_insensitive_map.hpp +2 -3
  187. package/src/duckdb/src/include/duckdb/common/enums/logical_operator_type.hpp +1 -0
  188. package/src/duckdb/src/include/duckdb/common/enums/physical_operator_type.hpp +2 -0
  189. package/src/duckdb/src/include/duckdb/common/multi_file_reader_options.hpp +1 -1
  190. package/src/duckdb/src/include/duckdb/common/string_util.hpp +3 -0
  191. package/src/duckdb/src/include/duckdb/execution/index/art/art.hpp +1 -1
  192. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_hash_aggregate.hpp +3 -0
  193. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_perfecthash_aggregate.hpp +3 -0
  194. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_streaming_window.hpp +3 -0
  195. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_ungrouped_aggregate.hpp +3 -0
  196. package/src/duckdb/src/include/duckdb/execution/operator/aggregate/physical_window.hpp +3 -0
  197. package/src/duckdb/src/include/duckdb/execution/operator/filter/physical_filter.hpp +3 -0
  198. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_execute.hpp +3 -0
  199. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_explain_analyze.hpp +3 -0
  200. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_limit.hpp +3 -0
  201. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_limit_percent.hpp +3 -0
  202. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_load.hpp +3 -0
  203. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_pragma.hpp +3 -0
  204. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_prepare.hpp +3 -0
  205. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_reset.hpp +3 -0
  206. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_set.hpp +3 -0
  207. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_streaming_limit.hpp +3 -0
  208. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_streaming_sample.hpp +3 -0
  209. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_transaction.hpp +3 -0
  210. package/src/duckdb/src/include/duckdb/execution/operator/helper/physical_vacuum.hpp +3 -0
  211. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_blockwise_nl_join.hpp +3 -0
  212. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_cross_product.hpp +3 -0
  213. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_delim_join.hpp +3 -0
  214. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_hash_join.hpp +3 -0
  215. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_iejoin.hpp +3 -0
  216. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_index_join.hpp +3 -0
  217. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_join.hpp +3 -0
  218. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_nested_loop_join.hpp +3 -4
  219. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_piecewise_merge_join.hpp +3 -0
  220. package/src/duckdb/src/include/duckdb/execution/operator/join/physical_positional_join.hpp +3 -0
  221. package/src/duckdb/src/include/duckdb/execution/operator/order/physical_order.hpp +3 -0
  222. package/src/duckdb/src/include/duckdb/execution/operator/order/physical_top_n.hpp +3 -0
  223. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_batch_insert.hpp +3 -0
  224. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_copy_to_file.hpp +3 -0
  225. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_delete.hpp +3 -0
  226. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_export.hpp +3 -0
  227. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_insert.hpp +3 -0
  228. package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_update.hpp +3 -0
  229. package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_pivot.hpp +38 -0
  230. package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_projection.hpp +3 -0
  231. package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_tableinout_function.hpp +4 -2
  232. package/src/duckdb/src/include/duckdb/execution/operator/projection/physical_unnest.hpp +3 -1
  233. package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_column_data_scan.hpp +3 -0
  234. package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_dummy_scan.hpp +3 -0
  235. package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_empty_result.hpp +3 -0
  236. package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_expression_scan.hpp +3 -0
  237. package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_positional_scan.hpp +3 -0
  238. package/src/duckdb/src/include/duckdb/execution/operator/scan/physical_table_scan.hpp +3 -0
  239. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_alter.hpp +3 -0
  240. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_attach.hpp +3 -0
  241. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_function.hpp +3 -0
  242. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_index.hpp +3 -0
  243. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_schema.hpp +3 -0
  244. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_sequence.hpp +3 -0
  245. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_table.hpp +3 -0
  246. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_type.hpp +3 -0
  247. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_create_view.hpp +3 -0
  248. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_detach.hpp +3 -0
  249. package/src/duckdb/src/include/duckdb/execution/operator/schema/physical_drop.hpp +3 -0
  250. package/src/duckdb/src/include/duckdb/execution/operator/set/physical_recursive_cte.hpp +3 -0
  251. package/src/duckdb/src/include/duckdb/execution/operator/set/physical_union.hpp +4 -0
  252. package/src/duckdb/src/include/duckdb/execution/physical_operator.hpp +18 -57
  253. package/src/duckdb/src/include/duckdb/execution/physical_operator_states.hpp +150 -0
  254. package/src/duckdb/src/include/duckdb/execution/physical_plan_generator.hpp +1 -0
  255. package/src/duckdb/src/include/duckdb/function/cast/default_casts.hpp +11 -0
  256. package/src/duckdb/src/include/duckdb/function/copy_function.hpp +22 -0
  257. package/src/duckdb/src/include/duckdb/function/function.hpp +20 -4
  258. package/src/duckdb/src/include/duckdb/function/macro_function.hpp +3 -3
  259. package/src/duckdb/src/include/duckdb/function/pragma_function.hpp +1 -1
  260. package/src/duckdb/src/include/duckdb/function/scalar/nested_functions.hpp +1 -1
  261. package/src/duckdb/src/include/duckdb/function/scalar_function.hpp +11 -0
  262. package/src/duckdb/src/include/duckdb/function/scalar_macro_function.hpp +2 -2
  263. package/src/duckdb/src/include/duckdb/function/table_function.hpp +22 -0
  264. package/src/duckdb/src/include/duckdb/function/table_macro_function.hpp +3 -3
  265. package/src/duckdb/src/include/duckdb/main/client_config.hpp +3 -2
  266. package/src/duckdb/src/include/duckdb/main/settings.hpp +10 -0
  267. package/src/duckdb/src/include/duckdb/optimizer/rule/like_optimizations.hpp +1 -1
  268. package/src/duckdb/src/include/duckdb/parser/base_expression.hpp +18 -0
  269. package/src/duckdb/src/include/duckdb/parser/constraint.hpp +18 -0
  270. package/src/duckdb/src/include/duckdb/parser/constraints/check_constraint.hpp +3 -0
  271. package/src/duckdb/src/include/duckdb/parser/constraints/foreign_key_constraint.hpp +3 -0
  272. package/src/duckdb/src/include/duckdb/parser/constraints/not_null_constraint.hpp +3 -0
  273. package/src/duckdb/src/include/duckdb/parser/constraints/unique_constraint.hpp +3 -0
  274. package/src/duckdb/src/include/duckdb/parser/expression/between_expression.hpp +3 -0
  275. package/src/duckdb/src/include/duckdb/parser/expression/bound_expression.hpp +3 -0
  276. package/src/duckdb/src/include/duckdb/parser/expression/case_expression.hpp +3 -0
  277. package/src/duckdb/src/include/duckdb/parser/expression/cast_expression.hpp +3 -0
  278. package/src/duckdb/src/include/duckdb/parser/expression/collate_expression.hpp +3 -0
  279. package/src/duckdb/src/include/duckdb/parser/expression/columnref_expression.hpp +3 -0
  280. package/src/duckdb/src/include/duckdb/parser/expression/comparison_expression.hpp +3 -0
  281. package/src/duckdb/src/include/duckdb/parser/expression/conjunction_expression.hpp +3 -0
  282. package/src/duckdb/src/include/duckdb/parser/expression/constant_expression.hpp +3 -0
  283. package/src/duckdb/src/include/duckdb/parser/expression/default_expression.hpp +3 -0
  284. package/src/duckdb/src/include/duckdb/parser/expression/function_expression.hpp +3 -0
  285. package/src/duckdb/src/include/duckdb/parser/expression/lambda_expression.hpp +3 -0
  286. package/src/duckdb/src/include/duckdb/parser/expression/operator_expression.hpp +3 -0
  287. package/src/duckdb/src/include/duckdb/parser/expression/parameter_expression.hpp +3 -0
  288. package/src/duckdb/src/include/duckdb/parser/expression/positional_reference_expression.hpp +3 -0
  289. package/src/duckdb/src/include/duckdb/parser/expression/star_expression.hpp +3 -0
  290. package/src/duckdb/src/include/duckdb/parser/expression/subquery_expression.hpp +3 -0
  291. package/src/duckdb/src/include/duckdb/parser/expression/window_expression.hpp +3 -0
  292. package/src/duckdb/src/include/duckdb/parser/query_node/list.hpp +3 -0
  293. package/src/duckdb/src/include/duckdb/parser/query_node/recursive_cte_node.hpp +3 -0
  294. package/src/duckdb/src/include/duckdb/parser/query_node/select_node.hpp +3 -0
  295. package/src/duckdb/src/include/duckdb/parser/query_node/set_operation_node.hpp +3 -0
  296. package/src/duckdb/src/include/duckdb/parser/query_node.hpp +18 -0
  297. package/src/duckdb/src/include/duckdb/parser/sql_statement.hpp +18 -0
  298. package/src/duckdb/src/include/duckdb/parser/statement/alter_statement.hpp +3 -0
  299. package/src/duckdb/src/include/duckdb/parser/statement/attach_statement.hpp +3 -0
  300. package/src/duckdb/src/include/duckdb/parser/statement/call_statement.hpp +3 -0
  301. package/src/duckdb/src/include/duckdb/parser/statement/copy_statement.hpp +3 -0
  302. package/src/duckdb/src/include/duckdb/parser/statement/create_statement.hpp +3 -0
  303. package/src/duckdb/src/include/duckdb/parser/statement/delete_statement.hpp +3 -0
  304. package/src/duckdb/src/include/duckdb/parser/statement/detach_statement.hpp +3 -0
  305. package/src/duckdb/src/include/duckdb/parser/statement/drop_statement.hpp +3 -0
  306. package/src/duckdb/src/include/duckdb/parser/statement/execute_statement.hpp +3 -0
  307. package/src/duckdb/src/include/duckdb/parser/statement/explain_statement.hpp +3 -0
  308. package/src/duckdb/src/include/duckdb/parser/statement/export_statement.hpp +3 -0
  309. package/src/duckdb/src/include/duckdb/parser/statement/extension_statement.hpp +3 -0
  310. package/src/duckdb/src/include/duckdb/parser/statement/insert_statement.hpp +3 -0
  311. package/src/duckdb/src/include/duckdb/parser/statement/list.hpp +1 -0
  312. package/src/duckdb/src/include/duckdb/parser/statement/load_statement.hpp +3 -0
  313. package/src/duckdb/src/include/duckdb/parser/statement/logical_plan_statement.hpp +3 -0
  314. package/src/duckdb/src/include/duckdb/parser/statement/multi_statement.hpp +3 -0
  315. package/src/duckdb/src/include/duckdb/parser/statement/pragma_statement.hpp +3 -0
  316. package/src/duckdb/src/include/duckdb/parser/statement/prepare_statement.hpp +3 -0
  317. package/src/duckdb/src/include/duckdb/parser/statement/relation_statement.hpp +3 -0
  318. package/src/duckdb/src/include/duckdb/parser/statement/select_statement.hpp +3 -0
  319. package/src/duckdb/src/include/duckdb/parser/statement/set_statement.hpp +3 -0
  320. package/src/duckdb/src/include/duckdb/parser/statement/show_statement.hpp +3 -0
  321. package/src/duckdb/src/include/duckdb/parser/statement/transaction_statement.hpp +3 -0
  322. package/src/duckdb/src/include/duckdb/parser/statement/update_statement.hpp +3 -0
  323. package/src/duckdb/src/include/duckdb/parser/statement/vacuum_statement.hpp +3 -0
  324. package/src/duckdb/src/include/duckdb/parser/tableref/basetableref.hpp +3 -0
  325. package/src/duckdb/src/include/duckdb/parser/tableref/emptytableref.hpp +3 -0
  326. package/src/duckdb/src/include/duckdb/parser/tableref/expressionlistref.hpp +3 -0
  327. package/src/duckdb/src/include/duckdb/parser/tableref/joinref.hpp +3 -0
  328. package/src/duckdb/src/include/duckdb/parser/tableref/pivotref.hpp +14 -0
  329. package/src/duckdb/src/include/duckdb/parser/tableref/subqueryref.hpp +3 -0
  330. package/src/duckdb/src/include/duckdb/parser/tableref/table_function_ref.hpp +3 -0
  331. package/src/duckdb/src/include/duckdb/parser/tableref.hpp +17 -0
  332. package/src/duckdb/src/include/duckdb/planner/bind_context.hpp +2 -0
  333. package/src/duckdb/src/include/duckdb/planner/binder.hpp +2 -0
  334. package/src/duckdb/src/include/duckdb/planner/bound_constraint.hpp +18 -0
  335. package/src/duckdb/src/include/duckdb/planner/bound_query_node.hpp +17 -0
  336. package/src/duckdb/src/include/duckdb/planner/bound_result_modifier.hpp +5 -1
  337. package/src/duckdb/src/include/duckdb/planner/bound_tableref.hpp +17 -0
  338. package/src/duckdb/src/include/duckdb/planner/bound_tokens.hpp +1 -0
  339. package/src/duckdb/src/include/duckdb/planner/constraints/bound_check_constraint.hpp +3 -0
  340. package/src/duckdb/src/include/duckdb/planner/constraints/bound_foreign_key_constraint.hpp +3 -0
  341. package/src/duckdb/src/include/duckdb/planner/constraints/bound_not_null_constraint.hpp +3 -0
  342. package/src/duckdb/src/include/duckdb/planner/constraints/bound_unique_constraint.hpp +3 -0
  343. package/src/duckdb/src/include/duckdb/planner/expression/bound_aggregate_expression.hpp +4 -0
  344. package/src/duckdb/src/include/duckdb/planner/expression/bound_between_expression.hpp +3 -0
  345. package/src/duckdb/src/include/duckdb/planner/expression/bound_case_expression.hpp +3 -0
  346. package/src/duckdb/src/include/duckdb/planner/expression/bound_cast_expression.hpp +3 -0
  347. package/src/duckdb/src/include/duckdb/planner/expression/bound_columnref_expression.hpp +3 -0
  348. package/src/duckdb/src/include/duckdb/planner/expression/bound_comparison_expression.hpp +3 -0
  349. package/src/duckdb/src/include/duckdb/planner/expression/bound_conjunction_expression.hpp +3 -0
  350. package/src/duckdb/src/include/duckdb/planner/expression/bound_constant_expression.hpp +3 -0
  351. package/src/duckdb/src/include/duckdb/planner/expression/bound_default_expression.hpp +3 -0
  352. package/src/duckdb/src/include/duckdb/planner/expression/bound_function_expression.hpp +3 -0
  353. package/src/duckdb/src/include/duckdb/planner/expression/bound_lambda_expression.hpp +3 -0
  354. package/src/duckdb/src/include/duckdb/planner/expression/bound_lambdaref_expression.hpp +3 -0
  355. package/src/duckdb/src/include/duckdb/planner/expression/bound_operator_expression.hpp +3 -0
  356. package/src/duckdb/src/include/duckdb/planner/expression/bound_parameter_expression.hpp +3 -0
  357. package/src/duckdb/src/include/duckdb/planner/expression/bound_reference_expression.hpp +3 -0
  358. package/src/duckdb/src/include/duckdb/planner/expression/bound_subquery_expression.hpp +3 -0
  359. package/src/duckdb/src/include/duckdb/planner/expression/bound_unnest_expression.hpp +3 -0
  360. package/src/duckdb/src/include/duckdb/planner/expression/bound_window_expression.hpp +4 -1
  361. package/src/duckdb/src/include/duckdb/planner/expression_binder/table_function_binder.hpp +1 -1
  362. package/src/duckdb/src/include/duckdb/planner/expression_binder.hpp +2 -0
  363. package/src/duckdb/src/include/duckdb/planner/logical_operator.hpp +17 -0
  364. package/src/duckdb/src/include/duckdb/planner/logical_tokens.hpp +1 -0
  365. package/src/duckdb/src/include/duckdb/planner/operator/list.hpp +1 -0
  366. package/src/duckdb/src/include/duckdb/planner/operator/logical_aggregate.hpp +3 -0
  367. package/src/duckdb/src/include/duckdb/planner/operator/logical_any_join.hpp +3 -0
  368. package/src/duckdb/src/include/duckdb/planner/operator/logical_asof_join.hpp +3 -0
  369. package/src/duckdb/src/include/duckdb/planner/operator/logical_column_data_get.hpp +3 -0
  370. package/src/duckdb/src/include/duckdb/planner/operator/logical_comparison_join.hpp +3 -0
  371. package/src/duckdb/src/include/duckdb/planner/operator/logical_copy_to_file.hpp +3 -0
  372. package/src/duckdb/src/include/duckdb/planner/operator/logical_create.hpp +3 -0
  373. package/src/duckdb/src/include/duckdb/planner/operator/logical_create_index.hpp +3 -0
  374. package/src/duckdb/src/include/duckdb/planner/operator/logical_create_table.hpp +3 -0
  375. package/src/duckdb/src/include/duckdb/planner/operator/logical_cross_product.hpp +3 -0
  376. package/src/duckdb/src/include/duckdb/planner/operator/logical_cteref.hpp +3 -0
  377. package/src/duckdb/src/include/duckdb/planner/operator/logical_delete.hpp +3 -0
  378. package/src/duckdb/src/include/duckdb/planner/operator/logical_delim_get.hpp +3 -0
  379. package/src/duckdb/src/include/duckdb/planner/operator/logical_delim_join.hpp +3 -0
  380. package/src/duckdb/src/include/duckdb/planner/operator/logical_distinct.hpp +12 -4
  381. package/src/duckdb/src/include/duckdb/planner/operator/logical_dummy_scan.hpp +3 -0
  382. package/src/duckdb/src/include/duckdb/planner/operator/logical_empty_result.hpp +3 -0
  383. package/src/duckdb/src/include/duckdb/planner/operator/logical_execute.hpp +3 -0
  384. package/src/duckdb/src/include/duckdb/planner/operator/logical_explain.hpp +3 -0
  385. package/src/duckdb/src/include/duckdb/planner/operator/logical_export.hpp +3 -0
  386. package/src/duckdb/src/include/duckdb/planner/operator/logical_expression_get.hpp +3 -0
  387. package/src/duckdb/src/include/duckdb/planner/operator/logical_extension_operator.hpp +4 -0
  388. package/src/duckdb/src/include/duckdb/planner/operator/logical_filter.hpp +3 -0
  389. package/src/duckdb/src/include/duckdb/planner/operator/logical_get.hpp +3 -0
  390. package/src/duckdb/src/include/duckdb/planner/operator/logical_insert.hpp +3 -0
  391. package/src/duckdb/src/include/duckdb/planner/operator/logical_join.hpp +3 -0
  392. package/src/duckdb/src/include/duckdb/planner/operator/logical_limit.hpp +3 -0
  393. package/src/duckdb/src/include/duckdb/planner/operator/logical_limit_percent.hpp +3 -0
  394. package/src/duckdb/src/include/duckdb/planner/operator/logical_order.hpp +3 -0
  395. package/src/duckdb/src/include/duckdb/planner/operator/logical_pivot.hpp +36 -0
  396. package/src/duckdb/src/include/duckdb/planner/operator/logical_positional_join.hpp +3 -0
  397. package/src/duckdb/src/include/duckdb/planner/operator/logical_pragma.hpp +3 -0
  398. package/src/duckdb/src/include/duckdb/planner/operator/logical_prepare.hpp +3 -0
  399. package/src/duckdb/src/include/duckdb/planner/operator/logical_projection.hpp +3 -0
  400. package/src/duckdb/src/include/duckdb/planner/operator/logical_recursive_cte.hpp +9 -5
  401. package/src/duckdb/src/include/duckdb/planner/operator/logical_reset.hpp +3 -0
  402. package/src/duckdb/src/include/duckdb/planner/operator/logical_sample.hpp +3 -0
  403. package/src/duckdb/src/include/duckdb/planner/operator/logical_set.hpp +3 -0
  404. package/src/duckdb/src/include/duckdb/planner/operator/logical_set_operation.hpp +3 -0
  405. package/src/duckdb/src/include/duckdb/planner/operator/logical_show.hpp +3 -0
  406. package/src/duckdb/src/include/duckdb/planner/operator/logical_simple.hpp +3 -0
  407. package/src/duckdb/src/include/duckdb/planner/operator/logical_top_n.hpp +3 -0
  408. package/src/duckdb/src/include/duckdb/planner/operator/logical_unconditional_join.hpp +3 -0
  409. package/src/duckdb/src/include/duckdb/planner/operator/logical_unnest.hpp +3 -0
  410. package/src/duckdb/src/include/duckdb/planner/operator/logical_update.hpp +3 -0
  411. package/src/duckdb/src/include/duckdb/planner/operator/logical_window.hpp +3 -0
  412. package/src/duckdb/src/include/duckdb/planner/query_node/bound_recursive_cte_node.hpp +3 -0
  413. package/src/duckdb/src/include/duckdb/planner/query_node/bound_select_node.hpp +3 -0
  414. package/src/duckdb/src/include/duckdb/planner/query_node/bound_set_operation_node.hpp +3 -0
  415. package/src/duckdb/src/include/duckdb/planner/query_node/list.hpp +3 -0
  416. package/src/duckdb/src/include/duckdb/planner/tableref/bound_basetableref.hpp +3 -0
  417. package/src/duckdb/src/include/duckdb/planner/tableref/bound_cteref.hpp +3 -0
  418. package/src/duckdb/src/include/duckdb/planner/tableref/bound_dummytableref.hpp +3 -0
  419. package/src/duckdb/src/include/duckdb/planner/tableref/bound_expressionlistref.hpp +3 -0
  420. package/src/duckdb/src/include/duckdb/planner/tableref/bound_joinref.hpp +3 -0
  421. package/src/duckdb/src/include/duckdb/planner/tableref/bound_pivotref.hpp +43 -0
  422. package/src/duckdb/src/include/duckdb/planner/tableref/bound_pos_join_ref.hpp +3 -0
  423. package/src/duckdb/src/include/duckdb/planner/tableref/bound_subqueryref.hpp +3 -0
  424. package/src/duckdb/src/include/duckdb/planner/tableref/bound_table_function.hpp +3 -0
  425. package/src/duckdb/src/include/duckdb/planner/tableref/list.hpp +1 -0
  426. package/src/duckdb/src/include/duckdb/storage/index.hpp +15 -2
  427. package/src/duckdb/src/include/duckdb/storage/write_ahead_log.hpp +17 -17
  428. package/src/duckdb/src/include/duckdb/transaction/commit_state.hpp +1 -1
  429. package/src/duckdb/src/main/capi/table_function-c.cpp +9 -9
  430. package/src/duckdb/src/main/client_context.cpp +1 -1
  431. package/src/duckdb/src/main/config.cpp +1 -0
  432. package/src/duckdb/src/main/query_profiler.cpp +2 -2
  433. package/src/duckdb/src/main/relation/aggregate_relation.cpp +1 -1
  434. package/src/duckdb/src/main/relation/filter_relation.cpp +1 -1
  435. package/src/duckdb/src/main/relation/projection_relation.cpp +1 -1
  436. package/src/duckdb/src/main/relation.cpp +1 -1
  437. package/src/duckdb/src/main/settings/settings.cpp +17 -1
  438. package/src/duckdb/src/optimizer/column_lifetime_analyzer.cpp +3 -3
  439. package/src/duckdb/src/optimizer/common_aggregate_optimizer.cpp +1 -1
  440. package/src/duckdb/src/optimizer/cse_optimizer.cpp +1 -1
  441. package/src/duckdb/src/optimizer/deliminator.cpp +11 -11
  442. package/src/duckdb/src/optimizer/expression_heuristics.cpp +11 -11
  443. package/src/duckdb/src/optimizer/expression_rewriter.cpp +1 -1
  444. package/src/duckdb/src/optimizer/filter_combiner.cpp +40 -38
  445. package/src/duckdb/src/optimizer/filter_pullup.cpp +2 -2
  446. package/src/duckdb/src/optimizer/filter_pushdown.cpp +1 -1
  447. package/src/duckdb/src/optimizer/join_order/cardinality_estimator.cpp +8 -8
  448. package/src/duckdb/src/optimizer/join_order/join_order_optimizer.cpp +24 -24
  449. package/src/duckdb/src/optimizer/matcher/expression_matcher.cpp +12 -12
  450. package/src/duckdb/src/optimizer/pullup/pullup_filter.cpp +1 -1
  451. package/src/duckdb/src/optimizer/pullup/pullup_projection.cpp +2 -2
  452. package/src/duckdb/src/optimizer/pullup/pullup_set_operation.cpp +3 -3
  453. package/src/duckdb/src/optimizer/pushdown/pushdown_aggregate.cpp +3 -3
  454. package/src/duckdb/src/optimizer/pushdown/pushdown_filter.cpp +1 -1
  455. package/src/duckdb/src/optimizer/pushdown/pushdown_get.cpp +1 -1
  456. package/src/duckdb/src/optimizer/pushdown/pushdown_inner_join.cpp +3 -3
  457. package/src/duckdb/src/optimizer/pushdown/pushdown_left_join.cpp +3 -3
  458. package/src/duckdb/src/optimizer/pushdown/pushdown_limit.cpp +1 -1
  459. package/src/duckdb/src/optimizer/pushdown/pushdown_mark_join.cpp +3 -3
  460. package/src/duckdb/src/optimizer/pushdown/pushdown_projection.cpp +2 -2
  461. package/src/duckdb/src/optimizer/pushdown/pushdown_set_operation.cpp +4 -4
  462. package/src/duckdb/src/optimizer/pushdown/pushdown_single_join.cpp +1 -1
  463. package/src/duckdb/src/optimizer/regex_range_filter.cpp +2 -2
  464. package/src/duckdb/src/optimizer/remove_unused_columns.cpp +13 -9
  465. package/src/duckdb/src/optimizer/rule/arithmetic_simplification.cpp +20 -20
  466. package/src/duckdb/src/optimizer/rule/case_simplification.cpp +8 -8
  467. package/src/duckdb/src/optimizer/rule/comparison_simplification.cpp +14 -14
  468. package/src/duckdb/src/optimizer/rule/conjunction_simplification.cpp +5 -5
  469. package/src/duckdb/src/optimizer/rule/date_part_simplification.cpp +2 -2
  470. package/src/duckdb/src/optimizer/rule/distributivity.cpp +16 -16
  471. package/src/duckdb/src/optimizer/rule/empty_needle_removal.cpp +4 -5
  472. package/src/duckdb/src/optimizer/rule/enum_comparison.cpp +8 -9
  473. package/src/duckdb/src/optimizer/rule/in_clause_simplification_rule.cpp +13 -13
  474. package/src/duckdb/src/optimizer/rule/like_optimizations.cpp +12 -12
  475. package/src/duckdb/src/optimizer/rule/move_constants.cpp +31 -31
  476. package/src/duckdb/src/optimizer/rule/ordered_aggregate_optimizer.cpp +4 -4
  477. package/src/duckdb/src/optimizer/rule/regex_optimizations.cpp +10 -10
  478. package/src/duckdb/src/optimizer/statistics/operator/propagate_filter.cpp +9 -8
  479. package/src/duckdb/src/optimizer/statistics/operator/propagate_join.cpp +2 -2
  480. package/src/duckdb/src/optimizer/statistics_propagator.cpp +31 -20
  481. package/src/duckdb/src/optimizer/topn_optimizer.cpp +2 -2
  482. package/src/duckdb/src/optimizer/unnest_rewriter.cpp +13 -13
  483. package/src/duckdb/src/parser/column_definition.cpp +3 -3
  484. package/src/duckdb/src/parser/expression/columnref_expression.cpp +2 -5
  485. package/src/duckdb/src/parser/expression/conjunction_expression.cpp +1 -1
  486. package/src/duckdb/src/parser/expression/constant_expression.cpp +1 -1
  487. package/src/duckdb/src/parser/parsed_data/create_view_info.cpp +1 -1
  488. package/src/duckdb/src/parser/parsed_expression_iterator.cpp +20 -20
  489. package/src/duckdb/src/parser/parser.cpp +10 -10
  490. package/src/duckdb/src/parser/query_node/recursive_cte_node.cpp +4 -4
  491. package/src/duckdb/src/parser/query_node/select_node.cpp +10 -10
  492. package/src/duckdb/src/parser/query_node/set_operation_node.cpp +4 -4
  493. package/src/duckdb/src/parser/statement/insert_statement.cpp +1 -1
  494. package/src/duckdb/src/parser/statement/select_statement.cpp +2 -2
  495. package/src/duckdb/src/parser/transform/expression/transform_array_access.cpp +1 -1
  496. package/src/duckdb/src/parser/transform/expression/transform_columnref.cpp +3 -3
  497. package/src/duckdb/src/parser/transform/expression/transform_function.cpp +2 -42
  498. package/src/duckdb/src/parser/transform/expression/transform_operator.cpp +1 -1
  499. package/src/duckdb/src/parser/transform/helpers/transform_groupby.cpp +1 -1
  500. package/src/duckdb/src/parser/transform/statement/transform_create_type.cpp +0 -1
  501. package/src/duckdb/src/parser/transform/statement/transform_pivot_stmt.cpp +5 -2
  502. package/src/duckdb/src/parser/transform/statement/transform_pragma.cpp +5 -5
  503. package/src/duckdb/src/parser/transform/statement/transform_select_node.cpp +20 -20
  504. package/src/duckdb/src/parser/transform/tableref/transform_pivot.cpp +3 -3
  505. package/src/duckdb/src/planner/bind_context.cpp +11 -0
  506. package/src/duckdb/src/planner/binder/expression/bind_columnref_expression.cpp +47 -4
  507. package/src/duckdb/src/planner/binder/expression/bind_function_expression.cpp +5 -6
  508. package/src/duckdb/src/planner/binder/expression/bind_lambda.cpp +2 -2
  509. package/src/duckdb/src/planner/binder/expression/bind_macro_expression.cpp +3 -3
  510. package/src/duckdb/src/planner/binder/expression/bind_star_expression.cpp +8 -8
  511. package/src/duckdb/src/planner/binder/query_node/bind_select_node.cpp +23 -29
  512. package/src/duckdb/src/planner/binder/query_node/bind_setop_node.cpp +2 -2
  513. package/src/duckdb/src/planner/binder/query_node/bind_table_macro_node.cpp +1 -1
  514. package/src/duckdb/src/planner/binder/query_node/plan_query_node.cpp +3 -3
  515. package/src/duckdb/src/planner/binder/query_node/plan_recursive_cte_node.cpp +2 -3
  516. package/src/duckdb/src/planner/binder/query_node/plan_select_node.cpp +0 -2
  517. package/src/duckdb/src/planner/binder/query_node/plan_subquery.cpp +1 -1
  518. package/src/duckdb/src/planner/binder/statement/bind_call.cpp +3 -2
  519. package/src/duckdb/src/planner/binder/statement/bind_copy.cpp +1 -1
  520. package/src/duckdb/src/planner/binder/statement/bind_create.cpp +17 -16
  521. package/src/duckdb/src/planner/binder/statement/bind_create_table.cpp +7 -6
  522. package/src/duckdb/src/planner/binder/statement/bind_delete.cpp +3 -2
  523. package/src/duckdb/src/planner/binder/statement/bind_export.cpp +1 -1
  524. package/src/duckdb/src/planner/binder/statement/bind_extension.cpp +1 -1
  525. package/src/duckdb/src/planner/binder/statement/bind_insert.cpp +4 -4
  526. package/src/duckdb/src/planner/binder/statement/bind_set.cpp +2 -2
  527. package/src/duckdb/src/planner/binder/statement/bind_update.cpp +2 -1
  528. package/src/duckdb/src/planner/binder/statement/bind_vacuum.cpp +2 -2
  529. package/src/duckdb/src/planner/binder/tableref/bind_basetableref.cpp +4 -3
  530. package/src/duckdb/src/planner/binder/tableref/bind_pivot.cpp +303 -78
  531. package/src/duckdb/src/planner/binder/tableref/bind_subqueryref.cpp +4 -4
  532. package/src/duckdb/src/planner/binder/tableref/bind_table_function.cpp +10 -10
  533. package/src/duckdb/src/planner/binder/tableref/plan_joinref.cpp +6 -6
  534. package/src/duckdb/src/planner/binder/tableref/plan_pivotref.cpp +13 -0
  535. package/src/duckdb/src/planner/binder.cpp +52 -48
  536. package/src/duckdb/src/planner/expression/bound_aggregate_expression.cpp +8 -8
  537. package/src/duckdb/src/planner/expression/bound_between_expression.cpp +5 -5
  538. package/src/duckdb/src/planner/expression/bound_case_expression.cpp +1 -1
  539. package/src/duckdb/src/planner/expression/bound_cast_expression.cpp +5 -5
  540. package/src/duckdb/src/planner/expression/bound_columnref_expression.cpp +2 -2
  541. package/src/duckdb/src/planner/expression/bound_comparison_expression.cpp +3 -4
  542. package/src/duckdb/src/planner/expression/bound_conjunction_expression.cpp +2 -2
  543. package/src/duckdb/src/planner/expression/bound_constant_expression.cpp +2 -2
  544. package/src/duckdb/src/planner/expression/bound_function_expression.cpp +4 -4
  545. package/src/duckdb/src/planner/expression/bound_lambda_expression.cpp +4 -4
  546. package/src/duckdb/src/planner/expression/bound_lambdaref_expression.cpp +2 -2
  547. package/src/duckdb/src/planner/expression/bound_operator_expression.cpp +2 -2
  548. package/src/duckdb/src/planner/expression/bound_parameter_expression.cpp +3 -3
  549. package/src/duckdb/src/planner/expression/bound_reference_expression.cpp +2 -2
  550. package/src/duckdb/src/planner/expression/bound_unnest_expression.cpp +2 -2
  551. package/src/duckdb/src/planner/expression/bound_window_expression.cpp +16 -16
  552. package/src/duckdb/src/planner/expression_binder/alter_binder.cpp +1 -1
  553. package/src/duckdb/src/planner/expression_binder/base_select_binder.cpp +3 -3
  554. package/src/duckdb/src/planner/expression_binder/check_binder.cpp +1 -1
  555. package/src/duckdb/src/planner/expression_binder/constant_binder.cpp +11 -1
  556. package/src/duckdb/src/planner/expression_binder/group_binder.cpp +2 -2
  557. package/src/duckdb/src/planner/expression_binder/index_binder.cpp +1 -1
  558. package/src/duckdb/src/planner/expression_binder/lateral_binder.cpp +3 -3
  559. package/src/duckdb/src/planner/expression_binder/order_binder.cpp +3 -3
  560. package/src/duckdb/src/planner/expression_binder/qualify_binder.cpp +2 -1
  561. package/src/duckdb/src/planner/expression_binder/table_function_binder.cpp +7 -3
  562. package/src/duckdb/src/planner/expression_binder.cpp +24 -32
  563. package/src/duckdb/src/planner/expression_iterator.cpp +17 -17
  564. package/src/duckdb/src/planner/joinside.cpp +2 -2
  565. package/src/duckdb/src/planner/logical_operator.cpp +3 -0
  566. package/src/duckdb/src/planner/logical_operator_visitor.cpp +26 -26
  567. package/src/duckdb/src/planner/operator/logical_distinct.cpp +3 -1
  568. package/src/duckdb/src/planner/operator/logical_filter.cpp +1 -1
  569. package/src/duckdb/src/planner/operator/logical_join.cpp +1 -1
  570. package/src/duckdb/src/planner/operator/logical_pivot.cpp +35 -0
  571. package/src/duckdb/src/planner/operator/logical_recursive_cte.cpp +1 -1
  572. package/src/duckdb/src/planner/pragma_handler.cpp +2 -2
  573. package/src/duckdb/src/planner/subquery/flatten_dependent_join.cpp +25 -23
  574. package/src/duckdb/src/planner/subquery/rewrite_correlated_expressions.cpp +2 -2
  575. package/src/duckdb/src/planner/table_binding.cpp +8 -8
  576. package/src/duckdb/src/storage/checkpoint/table_data_writer.cpp +1 -1
  577. package/src/duckdb/src/storage/data_table.cpp +2 -1
  578. package/src/duckdb/src/storage/index.cpp +4 -5
  579. package/src/duckdb/src/storage/local_storage.cpp +2 -1
  580. package/src/duckdb/src/storage/table/row_group_collection.cpp +1 -1
  581. package/src/duckdb/src/storage/write_ahead_log.cpp +42 -42
  582. package/src/duckdb/src/transaction/commit_state.cpp +35 -35
  583. package/src/duckdb/src/transaction/duck_transaction.cpp +1 -1
  584. package/src/duckdb/src/transaction/rollback_state.cpp +1 -1
  585. package/src/duckdb/src/verification/deserialized_statement_verifier.cpp +1 -1
  586. package/src/duckdb/third_party/libpg_query/include/parser/gram.hpp +773 -793
  587. package/src/duckdb/third_party/libpg_query/include/parser/kwlist.hpp +1 -11
  588. package/src/duckdb/third_party/libpg_query/src_backend_parser_gram.cpp +17408 -17751
  589. package/src/duckdb/ub_extension_icu_third_party_icu_i18n.cpp +5 -5
  590. package/src/duckdb/ub_src_execution_operator_projection.cpp +2 -0
  591. package/src/duckdb/ub_src_execution_physical_plan.cpp +2 -0
  592. package/src/duckdb/ub_src_planner_binder_tableref.cpp +2 -0
  593. package/src/duckdb/ub_src_planner_operator.cpp +2 -0
@@ -138,402 +138,392 @@
138
138
  CSV = 354,
139
139
  CUBE = 355,
140
140
  CURRENT_P = 356,
141
- CURRENT_CATALOG = 357,
142
- CURRENT_DATE = 358,
143
- CURRENT_ROLE = 359,
144
- CURRENT_SCHEMA = 360,
145
- CURRENT_TIME = 361,
146
- CURRENT_TIMESTAMP = 362,
147
- CURRENT_USER = 363,
148
- CURSOR = 364,
149
- CYCLE = 365,
150
- DATA_P = 366,
151
- DATABASE = 367,
152
- DAY_P = 368,
153
- DAYS_P = 369,
154
- DEALLOCATE = 370,
155
- DEC = 371,
156
- DECIMAL_P = 372,
157
- DECLARE = 373,
158
- DEFAULT = 374,
159
- DEFAULTS = 375,
160
- DEFERRABLE = 376,
161
- DEFERRED = 377,
162
- DEFINER = 378,
163
- DELETE_P = 379,
164
- DELIMITER = 380,
165
- DELIMITERS = 381,
166
- DEPENDS = 382,
167
- DESC_P = 383,
168
- DESCRIBE = 384,
169
- DETACH = 385,
170
- DICTIONARY = 386,
171
- DISABLE_P = 387,
172
- DISCARD = 388,
173
- DISTINCT = 389,
174
- DO = 390,
175
- DOCUMENT_P = 391,
176
- DOMAIN_P = 392,
177
- DOUBLE_P = 393,
178
- DROP = 394,
179
- EACH = 395,
180
- ELSE = 396,
181
- ENABLE_P = 397,
182
- ENCODING = 398,
183
- ENCRYPTED = 399,
184
- END_P = 400,
185
- ENUM_P = 401,
186
- ESCAPE = 402,
187
- EVENT = 403,
188
- EXCEPT = 404,
189
- EXCLUDE = 405,
190
- EXCLUDING = 406,
191
- EXCLUSIVE = 407,
192
- EXECUTE = 408,
193
- EXISTS = 409,
194
- EXPLAIN = 410,
195
- EXPORT_P = 411,
196
- EXPORT_STATE = 412,
197
- EXTENSION = 413,
198
- EXTERNAL = 414,
199
- EXTRACT = 415,
200
- FALSE_P = 416,
201
- FAMILY = 417,
202
- FETCH = 418,
203
- FILTER = 419,
204
- FIRST_P = 420,
205
- FLOAT_P = 421,
206
- FOLLOWING = 422,
207
- FOR = 423,
208
- FORCE = 424,
209
- FOREIGN = 425,
210
- FORWARD = 426,
211
- FREEZE = 427,
212
- FROM = 428,
213
- FULL = 429,
214
- FUNCTION = 430,
215
- FUNCTIONS = 431,
216
- GENERATED = 432,
217
- GLOB = 433,
218
- GLOBAL = 434,
219
- GRANT = 435,
220
- GRANTED = 436,
221
- GROUP_P = 437,
222
- GROUPING = 438,
223
- GROUPING_ID = 439,
224
- HANDLER = 440,
225
- HAVING = 441,
226
- HEADER_P = 442,
227
- HOLD = 443,
228
- HOUR_P = 444,
229
- HOURS_P = 445,
230
- IDENTITY_P = 446,
231
- IF_P = 447,
232
- IGNORE_P = 448,
233
- ILIKE = 449,
234
- IMMEDIATE = 450,
235
- IMMUTABLE = 451,
236
- IMPLICIT_P = 452,
237
- IMPORT_P = 453,
238
- IN_P = 454,
239
- INCLUDE_P = 455,
240
- INCLUDING = 456,
241
- INCREMENT = 457,
242
- INDEX = 458,
243
- INDEXES = 459,
244
- INHERIT = 460,
245
- INHERITS = 461,
246
- INITIALLY = 462,
247
- INLINE_P = 463,
248
- INNER_P = 464,
249
- INOUT = 465,
250
- INPUT_P = 466,
251
- INSENSITIVE = 467,
252
- INSERT = 468,
253
- INSTALL = 469,
254
- INSTEAD = 470,
255
- INT_P = 471,
256
- INTEGER = 472,
257
- INTERSECT = 473,
258
- INTERVAL = 474,
259
- INTO = 475,
260
- INVOKER = 476,
261
- IS = 477,
262
- ISNULL = 478,
263
- ISOLATION = 479,
264
- JOIN = 480,
265
- JSON = 481,
266
- KEY = 482,
267
- LABEL = 483,
268
- LANGUAGE = 484,
269
- LARGE_P = 485,
270
- LAST_P = 486,
271
- LATERAL_P = 487,
272
- LEADING = 488,
273
- LEAKPROOF = 489,
274
- LEFT = 490,
275
- LEVEL = 491,
276
- LIKE = 492,
277
- LIMIT = 493,
278
- LISTEN = 494,
279
- LOAD = 495,
280
- LOCAL = 496,
281
- LOCALTIME = 497,
282
- LOCALTIMESTAMP = 498,
283
- LOCATION = 499,
284
- LOCK_P = 500,
285
- LOCKED = 501,
286
- LOGGED = 502,
287
- MACRO = 503,
288
- MAP = 504,
289
- MAPPING = 505,
290
- MATCH = 506,
291
- MATERIALIZED = 507,
292
- MAXVALUE = 508,
293
- METHOD = 509,
294
- MICROSECOND_P = 510,
295
- MICROSECONDS_P = 511,
296
- MILLISECOND_P = 512,
297
- MILLISECONDS_P = 513,
298
- MINUTE_P = 514,
299
- MINUTES_P = 515,
300
- MINVALUE = 516,
301
- MODE = 517,
302
- MONTH_P = 518,
303
- MONTHS_P = 519,
304
- MOVE = 520,
305
- NAME_P = 521,
306
- NAMES = 522,
307
- NATIONAL = 523,
308
- NATURAL = 524,
309
- NCHAR = 525,
310
- NEW = 526,
311
- NEXT = 527,
312
- NO = 528,
313
- NONE = 529,
314
- NOT = 530,
315
- NOTHING = 531,
316
- NOTIFY = 532,
317
- NOTNULL = 533,
318
- NOWAIT = 534,
319
- NULL_P = 535,
320
- NULLIF = 536,
321
- NULLS_P = 537,
322
- NUMERIC = 538,
323
- OBJECT_P = 539,
324
- OF = 540,
325
- OFF = 541,
326
- OFFSET = 542,
327
- OIDS = 543,
328
- OLD = 544,
329
- ON = 545,
330
- ONLY = 546,
331
- OPERATOR = 547,
332
- OPTION = 548,
333
- OPTIONS = 549,
334
- OR = 550,
335
- ORDER = 551,
336
- ORDINALITY = 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
- PIVOT = 568,
353
- PIVOT_LONGER = 569,
354
- PIVOT_WIDER = 570,
355
- PLACING = 571,
356
- PLANS = 572,
357
- POLICY = 573,
358
- POSITION = 574,
359
- POSITIONAL = 575,
360
- PRAGMA_P = 576,
361
- PRECEDING = 577,
362
- PRECISION = 578,
363
- PREPARE = 579,
364
- PREPARED = 580,
365
- PRESERVE = 581,
366
- PRIMARY = 582,
367
- PRIOR = 583,
368
- PRIVILEGES = 584,
369
- PROCEDURAL = 585,
370
- PROCEDURE = 586,
371
- PROGRAM = 587,
372
- PUBLICATION = 588,
373
- QUALIFY = 589,
374
- QUOTE = 590,
375
- RANGE = 591,
376
- READ_P = 592,
377
- REAL = 593,
378
- REASSIGN = 594,
379
- RECHECK = 595,
380
- RECURSIVE = 596,
381
- REF = 597,
382
- REFERENCES = 598,
383
- REFERENCING = 599,
384
- REFRESH = 600,
385
- REINDEX = 601,
386
- RELATIVE_P = 602,
387
- RELEASE = 603,
388
- RENAME = 604,
389
- REPEATABLE = 605,
390
- REPLACE = 606,
391
- REPLICA = 607,
392
- RESET = 608,
393
- RESPECT_P = 609,
394
- RESTART = 610,
395
- RESTRICT = 611,
396
- RETURNING = 612,
397
- RETURNS = 613,
398
- REVOKE = 614,
399
- RIGHT = 615,
400
- ROLE = 616,
401
- ROLLBACK = 617,
402
- ROLLUP = 618,
403
- ROW = 619,
404
- ROWS = 620,
405
- RULE = 621,
406
- SAMPLE = 622,
407
- SAVEPOINT = 623,
408
- SCHEMA = 624,
409
- SCHEMAS = 625,
410
- SCROLL = 626,
411
- SEARCH = 627,
412
- SECOND_P = 628,
413
- SECONDS_P = 629,
414
- SECURITY = 630,
415
- SELECT = 631,
416
- SEMI = 632,
417
- SEQUENCE = 633,
418
- SEQUENCES = 634,
419
- SERIALIZABLE = 635,
420
- SERVER = 636,
421
- SESSION = 637,
422
- SESSION_USER = 638,
423
- SET = 639,
424
- SETOF = 640,
425
- SETS = 641,
426
- SHARE = 642,
427
- SHOW = 643,
428
- SIMILAR = 644,
429
- SIMPLE = 645,
430
- SKIP = 646,
431
- SMALLINT = 647,
432
- SNAPSHOT = 648,
433
- SOME = 649,
434
- SQL_P = 650,
435
- STABLE = 651,
436
- STANDALONE_P = 652,
437
- START = 653,
438
- STATEMENT = 654,
439
- STATISTICS = 655,
440
- STDIN = 656,
441
- STDOUT = 657,
442
- STORAGE = 658,
443
- STORED = 659,
444
- STRICT_P = 660,
445
- STRIP_P = 661,
446
- STRUCT = 662,
447
- SUBSCRIPTION = 663,
448
- SUBSTRING = 664,
449
- SUMMARIZE = 665,
450
- SYMMETRIC = 666,
451
- SYSID = 667,
452
- SYSTEM_P = 668,
453
- TABLE = 669,
454
- TABLES = 670,
455
- TABLESAMPLE = 671,
456
- TABLESPACE = 672,
457
- TEMP = 673,
458
- TEMPLATE = 674,
459
- TEMPORARY = 675,
460
- TEXT_P = 676,
461
- THEN = 677,
462
- TIME = 678,
463
- TIMESTAMP = 679,
464
- TO = 680,
465
- TRAILING = 681,
466
- TRANSACTION = 682,
467
- TRANSFORM = 683,
468
- TREAT = 684,
469
- TRIGGER = 685,
470
- TRIM = 686,
471
- TRUE_P = 687,
472
- TRUNCATE = 688,
473
- TRUSTED = 689,
474
- TRY_CAST = 690,
475
- TYPE_P = 691,
476
- TYPES_P = 692,
477
- UNBOUNDED = 693,
478
- UNCOMMITTED = 694,
479
- UNENCRYPTED = 695,
480
- UNION = 696,
481
- UNIQUE = 697,
482
- UNKNOWN = 698,
483
- UNLISTEN = 699,
484
- UNLOGGED = 700,
485
- UNPIVOT = 701,
486
- UNTIL = 702,
487
- UPDATE = 703,
488
- USE_P = 704,
489
- USER = 705,
490
- USING = 706,
491
- VACUUM = 707,
492
- VALID = 708,
493
- VALIDATE = 709,
494
- VALIDATOR = 710,
495
- VALUE_P = 711,
496
- VALUES = 712,
497
- VARCHAR = 713,
498
- VARIADIC = 714,
499
- VARYING = 715,
500
- VERBOSE = 716,
501
- VERSION_P = 717,
502
- VIEW = 718,
503
- VIEWS = 719,
504
- VIRTUAL = 720,
505
- VOLATILE = 721,
506
- WHEN = 722,
507
- WHERE = 723,
508
- WHITESPACE_P = 724,
509
- WINDOW = 725,
510
- WITH = 726,
511
- WITHIN = 727,
512
- WITHOUT = 728,
513
- WORK = 729,
514
- WRAPPER = 730,
515
- WRITE_P = 731,
516
- XML_P = 732,
517
- XMLATTRIBUTES = 733,
518
- XMLCONCAT = 734,
519
- XMLELEMENT = 735,
520
- XMLEXISTS = 736,
521
- XMLFOREST = 737,
522
- XMLNAMESPACES = 738,
523
- XMLPARSE = 739,
524
- XMLPI = 740,
525
- XMLROOT = 741,
526
- XMLSERIALIZE = 742,
527
- XMLTABLE = 743,
528
- YEAR_P = 744,
529
- YEARS_P = 745,
530
- YES_P = 746,
531
- ZONE = 747,
532
- NOT_LA = 748,
533
- NULLS_LA = 749,
534
- WITH_LA = 750,
535
- POSTFIXOP = 751,
536
- UMINUS = 752
141
+ CURSOR = 357,
142
+ CYCLE = 358,
143
+ DATA_P = 359,
144
+ DATABASE = 360,
145
+ DAY_P = 361,
146
+ DAYS_P = 362,
147
+ DEALLOCATE = 363,
148
+ DEC = 364,
149
+ DECIMAL_P = 365,
150
+ DECLARE = 366,
151
+ DEFAULT = 367,
152
+ DEFAULTS = 368,
153
+ DEFERRABLE = 369,
154
+ DEFERRED = 370,
155
+ DEFINER = 371,
156
+ DELETE_P = 372,
157
+ DELIMITER = 373,
158
+ DELIMITERS = 374,
159
+ DEPENDS = 375,
160
+ DESC_P = 376,
161
+ DESCRIBE = 377,
162
+ DETACH = 378,
163
+ DICTIONARY = 379,
164
+ DISABLE_P = 380,
165
+ DISCARD = 381,
166
+ DISTINCT = 382,
167
+ DO = 383,
168
+ DOCUMENT_P = 384,
169
+ DOMAIN_P = 385,
170
+ DOUBLE_P = 386,
171
+ DROP = 387,
172
+ EACH = 388,
173
+ ELSE = 389,
174
+ ENABLE_P = 390,
175
+ ENCODING = 391,
176
+ ENCRYPTED = 392,
177
+ END_P = 393,
178
+ ENUM_P = 394,
179
+ ESCAPE = 395,
180
+ EVENT = 396,
181
+ EXCEPT = 397,
182
+ EXCLUDE = 398,
183
+ EXCLUDING = 399,
184
+ EXCLUSIVE = 400,
185
+ EXECUTE = 401,
186
+ EXISTS = 402,
187
+ EXPLAIN = 403,
188
+ EXPORT_P = 404,
189
+ EXPORT_STATE = 405,
190
+ EXTENSION = 406,
191
+ EXTERNAL = 407,
192
+ EXTRACT = 408,
193
+ FALSE_P = 409,
194
+ FAMILY = 410,
195
+ FETCH = 411,
196
+ FILTER = 412,
197
+ FIRST_P = 413,
198
+ FLOAT_P = 414,
199
+ FOLLOWING = 415,
200
+ FOR = 416,
201
+ FORCE = 417,
202
+ FOREIGN = 418,
203
+ FORWARD = 419,
204
+ FREEZE = 420,
205
+ FROM = 421,
206
+ FULL = 422,
207
+ FUNCTION = 423,
208
+ FUNCTIONS = 424,
209
+ GENERATED = 425,
210
+ GLOB = 426,
211
+ GLOBAL = 427,
212
+ GRANT = 428,
213
+ GRANTED = 429,
214
+ GROUP_P = 430,
215
+ GROUPING = 431,
216
+ GROUPING_ID = 432,
217
+ HANDLER = 433,
218
+ HAVING = 434,
219
+ HEADER_P = 435,
220
+ HOLD = 436,
221
+ HOUR_P = 437,
222
+ HOURS_P = 438,
223
+ IDENTITY_P = 439,
224
+ IF_P = 440,
225
+ IGNORE_P = 441,
226
+ ILIKE = 442,
227
+ IMMEDIATE = 443,
228
+ IMMUTABLE = 444,
229
+ IMPLICIT_P = 445,
230
+ IMPORT_P = 446,
231
+ IN_P = 447,
232
+ INCLUDE_P = 448,
233
+ INCLUDING = 449,
234
+ INCREMENT = 450,
235
+ INDEX = 451,
236
+ INDEXES = 452,
237
+ INHERIT = 453,
238
+ INHERITS = 454,
239
+ INITIALLY = 455,
240
+ INLINE_P = 456,
241
+ INNER_P = 457,
242
+ INOUT = 458,
243
+ INPUT_P = 459,
244
+ INSENSITIVE = 460,
245
+ INSERT = 461,
246
+ INSTALL = 462,
247
+ INSTEAD = 463,
248
+ INT_P = 464,
249
+ INTEGER = 465,
250
+ INTERSECT = 466,
251
+ INTERVAL = 467,
252
+ INTO = 468,
253
+ INVOKER = 469,
254
+ IS = 470,
255
+ ISNULL = 471,
256
+ ISOLATION = 472,
257
+ JOIN = 473,
258
+ JSON = 474,
259
+ KEY = 475,
260
+ LABEL = 476,
261
+ LANGUAGE = 477,
262
+ LARGE_P = 478,
263
+ LAST_P = 479,
264
+ LATERAL_P = 480,
265
+ LEADING = 481,
266
+ LEAKPROOF = 482,
267
+ LEFT = 483,
268
+ LEVEL = 484,
269
+ LIKE = 485,
270
+ LIMIT = 486,
271
+ LISTEN = 487,
272
+ LOAD = 488,
273
+ LOCAL = 489,
274
+ LOCATION = 490,
275
+ LOCK_P = 491,
276
+ LOCKED = 492,
277
+ LOGGED = 493,
278
+ MACRO = 494,
279
+ MAP = 495,
280
+ MAPPING = 496,
281
+ MATCH = 497,
282
+ MATERIALIZED = 498,
283
+ MAXVALUE = 499,
284
+ METHOD = 500,
285
+ MICROSECOND_P = 501,
286
+ MICROSECONDS_P = 502,
287
+ MILLISECOND_P = 503,
288
+ MILLISECONDS_P = 504,
289
+ MINUTE_P = 505,
290
+ MINUTES_P = 506,
291
+ MINVALUE = 507,
292
+ MODE = 508,
293
+ MONTH_P = 509,
294
+ MONTHS_P = 510,
295
+ MOVE = 511,
296
+ NAME_P = 512,
297
+ NAMES = 513,
298
+ NATIONAL = 514,
299
+ NATURAL = 515,
300
+ NCHAR = 516,
301
+ NEW = 517,
302
+ NEXT = 518,
303
+ NO = 519,
304
+ NONE = 520,
305
+ NOT = 521,
306
+ NOTHING = 522,
307
+ NOTIFY = 523,
308
+ NOTNULL = 524,
309
+ NOWAIT = 525,
310
+ NULL_P = 526,
311
+ NULLIF = 527,
312
+ NULLS_P = 528,
313
+ NUMERIC = 529,
314
+ OBJECT_P = 530,
315
+ OF = 531,
316
+ OFF = 532,
317
+ OFFSET = 533,
318
+ OIDS = 534,
319
+ OLD = 535,
320
+ ON = 536,
321
+ ONLY = 537,
322
+ OPERATOR = 538,
323
+ OPTION = 539,
324
+ OPTIONS = 540,
325
+ OR = 541,
326
+ ORDER = 542,
327
+ ORDINALITY = 543,
328
+ OUT_P = 544,
329
+ OUTER_P = 545,
330
+ OVER = 546,
331
+ OVERLAPS = 547,
332
+ OVERLAY = 548,
333
+ OVERRIDING = 549,
334
+ OWNED = 550,
335
+ OWNER = 551,
336
+ PARALLEL = 552,
337
+ PARSER = 553,
338
+ PARTIAL = 554,
339
+ PARTITION = 555,
340
+ PASSING = 556,
341
+ PASSWORD = 557,
342
+ PERCENT = 558,
343
+ PIVOT = 559,
344
+ PIVOT_LONGER = 560,
345
+ PIVOT_WIDER = 561,
346
+ PLACING = 562,
347
+ PLANS = 563,
348
+ POLICY = 564,
349
+ POSITION = 565,
350
+ POSITIONAL = 566,
351
+ PRAGMA_P = 567,
352
+ PRECEDING = 568,
353
+ PRECISION = 569,
354
+ PREPARE = 570,
355
+ PREPARED = 571,
356
+ PRESERVE = 572,
357
+ PRIMARY = 573,
358
+ PRIOR = 574,
359
+ PRIVILEGES = 575,
360
+ PROCEDURAL = 576,
361
+ PROCEDURE = 577,
362
+ PROGRAM = 578,
363
+ PUBLICATION = 579,
364
+ QUALIFY = 580,
365
+ QUOTE = 581,
366
+ RANGE = 582,
367
+ READ_P = 583,
368
+ REAL = 584,
369
+ REASSIGN = 585,
370
+ RECHECK = 586,
371
+ RECURSIVE = 587,
372
+ REF = 588,
373
+ REFERENCES = 589,
374
+ REFERENCING = 590,
375
+ REFRESH = 591,
376
+ REINDEX = 592,
377
+ RELATIVE_P = 593,
378
+ RELEASE = 594,
379
+ RENAME = 595,
380
+ REPEATABLE = 596,
381
+ REPLACE = 597,
382
+ REPLICA = 598,
383
+ RESET = 599,
384
+ RESPECT_P = 600,
385
+ RESTART = 601,
386
+ RESTRICT = 602,
387
+ RETURNING = 603,
388
+ RETURNS = 604,
389
+ REVOKE = 605,
390
+ RIGHT = 606,
391
+ ROLE = 607,
392
+ ROLLBACK = 608,
393
+ ROLLUP = 609,
394
+ ROW = 610,
395
+ ROWS = 611,
396
+ RULE = 612,
397
+ SAMPLE = 613,
398
+ SAVEPOINT = 614,
399
+ SCHEMA = 615,
400
+ SCHEMAS = 616,
401
+ SCROLL = 617,
402
+ SEARCH = 618,
403
+ SECOND_P = 619,
404
+ SECONDS_P = 620,
405
+ SECURITY = 621,
406
+ SELECT = 622,
407
+ SEMI = 623,
408
+ SEQUENCE = 624,
409
+ SEQUENCES = 625,
410
+ SERIALIZABLE = 626,
411
+ SERVER = 627,
412
+ SESSION = 628,
413
+ SET = 629,
414
+ SETOF = 630,
415
+ SETS = 631,
416
+ SHARE = 632,
417
+ SHOW = 633,
418
+ SIMILAR = 634,
419
+ SIMPLE = 635,
420
+ SKIP = 636,
421
+ SMALLINT = 637,
422
+ SNAPSHOT = 638,
423
+ SOME = 639,
424
+ SQL_P = 640,
425
+ STABLE = 641,
426
+ STANDALONE_P = 642,
427
+ START = 643,
428
+ STATEMENT = 644,
429
+ STATISTICS = 645,
430
+ STDIN = 646,
431
+ STDOUT = 647,
432
+ STORAGE = 648,
433
+ STORED = 649,
434
+ STRICT_P = 650,
435
+ STRIP_P = 651,
436
+ STRUCT = 652,
437
+ SUBSCRIPTION = 653,
438
+ SUBSTRING = 654,
439
+ SUMMARIZE = 655,
440
+ SYMMETRIC = 656,
441
+ SYSID = 657,
442
+ SYSTEM_P = 658,
443
+ TABLE = 659,
444
+ TABLES = 660,
445
+ TABLESAMPLE = 661,
446
+ TABLESPACE = 662,
447
+ TEMP = 663,
448
+ TEMPLATE = 664,
449
+ TEMPORARY = 665,
450
+ TEXT_P = 666,
451
+ THEN = 667,
452
+ TIME = 668,
453
+ TIMESTAMP = 669,
454
+ TO = 670,
455
+ TRAILING = 671,
456
+ TRANSACTION = 672,
457
+ TRANSFORM = 673,
458
+ TREAT = 674,
459
+ TRIGGER = 675,
460
+ TRIM = 676,
461
+ TRUE_P = 677,
462
+ TRUNCATE = 678,
463
+ TRUSTED = 679,
464
+ TRY_CAST = 680,
465
+ TYPE_P = 681,
466
+ TYPES_P = 682,
467
+ UNBOUNDED = 683,
468
+ UNCOMMITTED = 684,
469
+ UNENCRYPTED = 685,
470
+ UNION = 686,
471
+ UNIQUE = 687,
472
+ UNKNOWN = 688,
473
+ UNLISTEN = 689,
474
+ UNLOGGED = 690,
475
+ UNPIVOT = 691,
476
+ UNTIL = 692,
477
+ UPDATE = 693,
478
+ USE_P = 694,
479
+ USER = 695,
480
+ USING = 696,
481
+ VACUUM = 697,
482
+ VALID = 698,
483
+ VALIDATE = 699,
484
+ VALIDATOR = 700,
485
+ VALUE_P = 701,
486
+ VALUES = 702,
487
+ VARCHAR = 703,
488
+ VARIADIC = 704,
489
+ VARYING = 705,
490
+ VERBOSE = 706,
491
+ VERSION_P = 707,
492
+ VIEW = 708,
493
+ VIEWS = 709,
494
+ VIRTUAL = 710,
495
+ VOLATILE = 711,
496
+ WHEN = 712,
497
+ WHERE = 713,
498
+ WHITESPACE_P = 714,
499
+ WINDOW = 715,
500
+ WITH = 716,
501
+ WITHIN = 717,
502
+ WITHOUT = 718,
503
+ WORK = 719,
504
+ WRAPPER = 720,
505
+ WRITE_P = 721,
506
+ XML_P = 722,
507
+ XMLATTRIBUTES = 723,
508
+ XMLCONCAT = 724,
509
+ XMLELEMENT = 725,
510
+ XMLEXISTS = 726,
511
+ XMLFOREST = 727,
512
+ XMLNAMESPACES = 728,
513
+ XMLPARSE = 729,
514
+ XMLPI = 730,
515
+ XMLROOT = 731,
516
+ XMLSERIALIZE = 732,
517
+ XMLTABLE = 733,
518
+ YEAR_P = 734,
519
+ YEARS_P = 735,
520
+ YES_P = 736,
521
+ ZONE = 737,
522
+ NOT_LA = 738,
523
+ NULLS_LA = 739,
524
+ WITH_LA = 740,
525
+ POSTFIXOP = 741,
526
+ UMINUS = 742
537
527
  };
538
528
  #endif
539
529
  /* Tokens. */
@@ -636,402 +626,392 @@
636
626
  #define CSV 354
637
627
  #define CUBE 355
638
628
  #define CURRENT_P 356
639
- #define CURRENT_CATALOG 357
640
- #define CURRENT_DATE 358
641
- #define CURRENT_ROLE 359
642
- #define CURRENT_SCHEMA 360
643
- #define CURRENT_TIME 361
644
- #define CURRENT_TIMESTAMP 362
645
- #define CURRENT_USER 363
646
- #define CURSOR 364
647
- #define CYCLE 365
648
- #define DATA_P 366
649
- #define DATABASE 367
650
- #define DAY_P 368
651
- #define DAYS_P 369
652
- #define DEALLOCATE 370
653
- #define DEC 371
654
- #define DECIMAL_P 372
655
- #define DECLARE 373
656
- #define DEFAULT 374
657
- #define DEFAULTS 375
658
- #define DEFERRABLE 376
659
- #define DEFERRED 377
660
- #define DEFINER 378
661
- #define DELETE_P 379
662
- #define DELIMITER 380
663
- #define DELIMITERS 381
664
- #define DEPENDS 382
665
- #define DESC_P 383
666
- #define DESCRIBE 384
667
- #define DETACH 385
668
- #define DICTIONARY 386
669
- #define DISABLE_P 387
670
- #define DISCARD 388
671
- #define DISTINCT 389
672
- #define DO 390
673
- #define DOCUMENT_P 391
674
- #define DOMAIN_P 392
675
- #define DOUBLE_P 393
676
- #define DROP 394
677
- #define EACH 395
678
- #define ELSE 396
679
- #define ENABLE_P 397
680
- #define ENCODING 398
681
- #define ENCRYPTED 399
682
- #define END_P 400
683
- #define ENUM_P 401
684
- #define ESCAPE 402
685
- #define EVENT 403
686
- #define EXCEPT 404
687
- #define EXCLUDE 405
688
- #define EXCLUDING 406
689
- #define EXCLUSIVE 407
690
- #define EXECUTE 408
691
- #define EXISTS 409
692
- #define EXPLAIN 410
693
- #define EXPORT_P 411
694
- #define EXPORT_STATE 412
695
- #define EXTENSION 413
696
- #define EXTERNAL 414
697
- #define EXTRACT 415
698
- #define FALSE_P 416
699
- #define FAMILY 417
700
- #define FETCH 418
701
- #define FILTER 419
702
- #define FIRST_P 420
703
- #define FLOAT_P 421
704
- #define FOLLOWING 422
705
- #define FOR 423
706
- #define FORCE 424
707
- #define FOREIGN 425
708
- #define FORWARD 426
709
- #define FREEZE 427
710
- #define FROM 428
711
- #define FULL 429
712
- #define FUNCTION 430
713
- #define FUNCTIONS 431
714
- #define GENERATED 432
715
- #define GLOB 433
716
- #define GLOBAL 434
717
- #define GRANT 435
718
- #define GRANTED 436
719
- #define GROUP_P 437
720
- #define GROUPING 438
721
- #define GROUPING_ID 439
722
- #define HANDLER 440
723
- #define HAVING 441
724
- #define HEADER_P 442
725
- #define HOLD 443
726
- #define HOUR_P 444
727
- #define HOURS_P 445
728
- #define IDENTITY_P 446
729
- #define IF_P 447
730
- #define IGNORE_P 448
731
- #define ILIKE 449
732
- #define IMMEDIATE 450
733
- #define IMMUTABLE 451
734
- #define IMPLICIT_P 452
735
- #define IMPORT_P 453
736
- #define IN_P 454
737
- #define INCLUDE_P 455
738
- #define INCLUDING 456
739
- #define INCREMENT 457
740
- #define INDEX 458
741
- #define INDEXES 459
742
- #define INHERIT 460
743
- #define INHERITS 461
744
- #define INITIALLY 462
745
- #define INLINE_P 463
746
- #define INNER_P 464
747
- #define INOUT 465
748
- #define INPUT_P 466
749
- #define INSENSITIVE 467
750
- #define INSERT 468
751
- #define INSTALL 469
752
- #define INSTEAD 470
753
- #define INT_P 471
754
- #define INTEGER 472
755
- #define INTERSECT 473
756
- #define INTERVAL 474
757
- #define INTO 475
758
- #define INVOKER 476
759
- #define IS 477
760
- #define ISNULL 478
761
- #define ISOLATION 479
762
- #define JOIN 480
763
- #define JSON 481
764
- #define KEY 482
765
- #define LABEL 483
766
- #define LANGUAGE 484
767
- #define LARGE_P 485
768
- #define LAST_P 486
769
- #define LATERAL_P 487
770
- #define LEADING 488
771
- #define LEAKPROOF 489
772
- #define LEFT 490
773
- #define LEVEL 491
774
- #define LIKE 492
775
- #define LIMIT 493
776
- #define LISTEN 494
777
- #define LOAD 495
778
- #define LOCAL 496
779
- #define LOCALTIME 497
780
- #define LOCALTIMESTAMP 498
781
- #define LOCATION 499
782
- #define LOCK_P 500
783
- #define LOCKED 501
784
- #define LOGGED 502
785
- #define MACRO 503
786
- #define MAP 504
787
- #define MAPPING 505
788
- #define MATCH 506
789
- #define MATERIALIZED 507
790
- #define MAXVALUE 508
791
- #define METHOD 509
792
- #define MICROSECOND_P 510
793
- #define MICROSECONDS_P 511
794
- #define MILLISECOND_P 512
795
- #define MILLISECONDS_P 513
796
- #define MINUTE_P 514
797
- #define MINUTES_P 515
798
- #define MINVALUE 516
799
- #define MODE 517
800
- #define MONTH_P 518
801
- #define MONTHS_P 519
802
- #define MOVE 520
803
- #define NAME_P 521
804
- #define NAMES 522
805
- #define NATIONAL 523
806
- #define NATURAL 524
807
- #define NCHAR 525
808
- #define NEW 526
809
- #define NEXT 527
810
- #define NO 528
811
- #define NONE 529
812
- #define NOT 530
813
- #define NOTHING 531
814
- #define NOTIFY 532
815
- #define NOTNULL 533
816
- #define NOWAIT 534
817
- #define NULL_P 535
818
- #define NULLIF 536
819
- #define NULLS_P 537
820
- #define NUMERIC 538
821
- #define OBJECT_P 539
822
- #define OF 540
823
- #define OFF 541
824
- #define OFFSET 542
825
- #define OIDS 543
826
- #define OLD 544
827
- #define ON 545
828
- #define ONLY 546
829
- #define OPERATOR 547
830
- #define OPTION 548
831
- #define OPTIONS 549
832
- #define OR 550
833
- #define ORDER 551
834
- #define ORDINALITY 552
835
- #define OUT_P 553
836
- #define OUTER_P 554
837
- #define OVER 555
838
- #define OVERLAPS 556
839
- #define OVERLAY 557
840
- #define OVERRIDING 558
841
- #define OWNED 559
842
- #define OWNER 560
843
- #define PARALLEL 561
844
- #define PARSER 562
845
- #define PARTIAL 563
846
- #define PARTITION 564
847
- #define PASSING 565
848
- #define PASSWORD 566
849
- #define PERCENT 567
850
- #define PIVOT 568
851
- #define PIVOT_LONGER 569
852
- #define PIVOT_WIDER 570
853
- #define PLACING 571
854
- #define PLANS 572
855
- #define POLICY 573
856
- #define POSITION 574
857
- #define POSITIONAL 575
858
- #define PRAGMA_P 576
859
- #define PRECEDING 577
860
- #define PRECISION 578
861
- #define PREPARE 579
862
- #define PREPARED 580
863
- #define PRESERVE 581
864
- #define PRIMARY 582
865
- #define PRIOR 583
866
- #define PRIVILEGES 584
867
- #define PROCEDURAL 585
868
- #define PROCEDURE 586
869
- #define PROGRAM 587
870
- #define PUBLICATION 588
871
- #define QUALIFY 589
872
- #define QUOTE 590
873
- #define RANGE 591
874
- #define READ_P 592
875
- #define REAL 593
876
- #define REASSIGN 594
877
- #define RECHECK 595
878
- #define RECURSIVE 596
879
- #define REF 597
880
- #define REFERENCES 598
881
- #define REFERENCING 599
882
- #define REFRESH 600
883
- #define REINDEX 601
884
- #define RELATIVE_P 602
885
- #define RELEASE 603
886
- #define RENAME 604
887
- #define REPEATABLE 605
888
- #define REPLACE 606
889
- #define REPLICA 607
890
- #define RESET 608
891
- #define RESPECT_P 609
892
- #define RESTART 610
893
- #define RESTRICT 611
894
- #define RETURNING 612
895
- #define RETURNS 613
896
- #define REVOKE 614
897
- #define RIGHT 615
898
- #define ROLE 616
899
- #define ROLLBACK 617
900
- #define ROLLUP 618
901
- #define ROW 619
902
- #define ROWS 620
903
- #define RULE 621
904
- #define SAMPLE 622
905
- #define SAVEPOINT 623
906
- #define SCHEMA 624
907
- #define SCHEMAS 625
908
- #define SCROLL 626
909
- #define SEARCH 627
910
- #define SECOND_P 628
911
- #define SECONDS_P 629
912
- #define SECURITY 630
913
- #define SELECT 631
914
- #define SEMI 632
915
- #define SEQUENCE 633
916
- #define SEQUENCES 634
917
- #define SERIALIZABLE 635
918
- #define SERVER 636
919
- #define SESSION 637
920
- #define SESSION_USER 638
921
- #define SET 639
922
- #define SETOF 640
923
- #define SETS 641
924
- #define SHARE 642
925
- #define SHOW 643
926
- #define SIMILAR 644
927
- #define SIMPLE 645
928
- #define SKIP 646
929
- #define SMALLINT 647
930
- #define SNAPSHOT 648
931
- #define SOME 649
932
- #define SQL_P 650
933
- #define STABLE 651
934
- #define STANDALONE_P 652
935
- #define START 653
936
- #define STATEMENT 654
937
- #define STATISTICS 655
938
- #define STDIN 656
939
- #define STDOUT 657
940
- #define STORAGE 658
941
- #define STORED 659
942
- #define STRICT_P 660
943
- #define STRIP_P 661
944
- #define STRUCT 662
945
- #define SUBSCRIPTION 663
946
- #define SUBSTRING 664
947
- #define SUMMARIZE 665
948
- #define SYMMETRIC 666
949
- #define SYSID 667
950
- #define SYSTEM_P 668
951
- #define TABLE 669
952
- #define TABLES 670
953
- #define TABLESAMPLE 671
954
- #define TABLESPACE 672
955
- #define TEMP 673
956
- #define TEMPLATE 674
957
- #define TEMPORARY 675
958
- #define TEXT_P 676
959
- #define THEN 677
960
- #define TIME 678
961
- #define TIMESTAMP 679
962
- #define TO 680
963
- #define TRAILING 681
964
- #define TRANSACTION 682
965
- #define TRANSFORM 683
966
- #define TREAT 684
967
- #define TRIGGER 685
968
- #define TRIM 686
969
- #define TRUE_P 687
970
- #define TRUNCATE 688
971
- #define TRUSTED 689
972
- #define TRY_CAST 690
973
- #define TYPE_P 691
974
- #define TYPES_P 692
975
- #define UNBOUNDED 693
976
- #define UNCOMMITTED 694
977
- #define UNENCRYPTED 695
978
- #define UNION 696
979
- #define UNIQUE 697
980
- #define UNKNOWN 698
981
- #define UNLISTEN 699
982
- #define UNLOGGED 700
983
- #define UNPIVOT 701
984
- #define UNTIL 702
985
- #define UPDATE 703
986
- #define USE_P 704
987
- #define USER 705
988
- #define USING 706
989
- #define VACUUM 707
990
- #define VALID 708
991
- #define VALIDATE 709
992
- #define VALIDATOR 710
993
- #define VALUE_P 711
994
- #define VALUES 712
995
- #define VARCHAR 713
996
- #define VARIADIC 714
997
- #define VARYING 715
998
- #define VERBOSE 716
999
- #define VERSION_P 717
1000
- #define VIEW 718
1001
- #define VIEWS 719
1002
- #define VIRTUAL 720
1003
- #define VOLATILE 721
1004
- #define WHEN 722
1005
- #define WHERE 723
1006
- #define WHITESPACE_P 724
1007
- #define WINDOW 725
1008
- #define WITH 726
1009
- #define WITHIN 727
1010
- #define WITHOUT 728
1011
- #define WORK 729
1012
- #define WRAPPER 730
1013
- #define WRITE_P 731
1014
- #define XML_P 732
1015
- #define XMLATTRIBUTES 733
1016
- #define XMLCONCAT 734
1017
- #define XMLELEMENT 735
1018
- #define XMLEXISTS 736
1019
- #define XMLFOREST 737
1020
- #define XMLNAMESPACES 738
1021
- #define XMLPARSE 739
1022
- #define XMLPI 740
1023
- #define XMLROOT 741
1024
- #define XMLSERIALIZE 742
1025
- #define XMLTABLE 743
1026
- #define YEAR_P 744
1027
- #define YEARS_P 745
1028
- #define YES_P 746
1029
- #define ZONE 747
1030
- #define NOT_LA 748
1031
- #define NULLS_LA 749
1032
- #define WITH_LA 750
1033
- #define POSTFIXOP 751
1034
- #define UMINUS 752
629
+ #define CURSOR 357
630
+ #define CYCLE 358
631
+ #define DATA_P 359
632
+ #define DATABASE 360
633
+ #define DAY_P 361
634
+ #define DAYS_P 362
635
+ #define DEALLOCATE 363
636
+ #define DEC 364
637
+ #define DECIMAL_P 365
638
+ #define DECLARE 366
639
+ #define DEFAULT 367
640
+ #define DEFAULTS 368
641
+ #define DEFERRABLE 369
642
+ #define DEFERRED 370
643
+ #define DEFINER 371
644
+ #define DELETE_P 372
645
+ #define DELIMITER 373
646
+ #define DELIMITERS 374
647
+ #define DEPENDS 375
648
+ #define DESC_P 376
649
+ #define DESCRIBE 377
650
+ #define DETACH 378
651
+ #define DICTIONARY 379
652
+ #define DISABLE_P 380
653
+ #define DISCARD 381
654
+ #define DISTINCT 382
655
+ #define DO 383
656
+ #define DOCUMENT_P 384
657
+ #define DOMAIN_P 385
658
+ #define DOUBLE_P 386
659
+ #define DROP 387
660
+ #define EACH 388
661
+ #define ELSE 389
662
+ #define ENABLE_P 390
663
+ #define ENCODING 391
664
+ #define ENCRYPTED 392
665
+ #define END_P 393
666
+ #define ENUM_P 394
667
+ #define ESCAPE 395
668
+ #define EVENT 396
669
+ #define EXCEPT 397
670
+ #define EXCLUDE 398
671
+ #define EXCLUDING 399
672
+ #define EXCLUSIVE 400
673
+ #define EXECUTE 401
674
+ #define EXISTS 402
675
+ #define EXPLAIN 403
676
+ #define EXPORT_P 404
677
+ #define EXPORT_STATE 405
678
+ #define EXTENSION 406
679
+ #define EXTERNAL 407
680
+ #define EXTRACT 408
681
+ #define FALSE_P 409
682
+ #define FAMILY 410
683
+ #define FETCH 411
684
+ #define FILTER 412
685
+ #define FIRST_P 413
686
+ #define FLOAT_P 414
687
+ #define FOLLOWING 415
688
+ #define FOR 416
689
+ #define FORCE 417
690
+ #define FOREIGN 418
691
+ #define FORWARD 419
692
+ #define FREEZE 420
693
+ #define FROM 421
694
+ #define FULL 422
695
+ #define FUNCTION 423
696
+ #define FUNCTIONS 424
697
+ #define GENERATED 425
698
+ #define GLOB 426
699
+ #define GLOBAL 427
700
+ #define GRANT 428
701
+ #define GRANTED 429
702
+ #define GROUP_P 430
703
+ #define GROUPING 431
704
+ #define GROUPING_ID 432
705
+ #define HANDLER 433
706
+ #define HAVING 434
707
+ #define HEADER_P 435
708
+ #define HOLD 436
709
+ #define HOUR_P 437
710
+ #define HOURS_P 438
711
+ #define IDENTITY_P 439
712
+ #define IF_P 440
713
+ #define IGNORE_P 441
714
+ #define ILIKE 442
715
+ #define IMMEDIATE 443
716
+ #define IMMUTABLE 444
717
+ #define IMPLICIT_P 445
718
+ #define IMPORT_P 446
719
+ #define IN_P 447
720
+ #define INCLUDE_P 448
721
+ #define INCLUDING 449
722
+ #define INCREMENT 450
723
+ #define INDEX 451
724
+ #define INDEXES 452
725
+ #define INHERIT 453
726
+ #define INHERITS 454
727
+ #define INITIALLY 455
728
+ #define INLINE_P 456
729
+ #define INNER_P 457
730
+ #define INOUT 458
731
+ #define INPUT_P 459
732
+ #define INSENSITIVE 460
733
+ #define INSERT 461
734
+ #define INSTALL 462
735
+ #define INSTEAD 463
736
+ #define INT_P 464
737
+ #define INTEGER 465
738
+ #define INTERSECT 466
739
+ #define INTERVAL 467
740
+ #define INTO 468
741
+ #define INVOKER 469
742
+ #define IS 470
743
+ #define ISNULL 471
744
+ #define ISOLATION 472
745
+ #define JOIN 473
746
+ #define JSON 474
747
+ #define KEY 475
748
+ #define LABEL 476
749
+ #define LANGUAGE 477
750
+ #define LARGE_P 478
751
+ #define LAST_P 479
752
+ #define LATERAL_P 480
753
+ #define LEADING 481
754
+ #define LEAKPROOF 482
755
+ #define LEFT 483
756
+ #define LEVEL 484
757
+ #define LIKE 485
758
+ #define LIMIT 486
759
+ #define LISTEN 487
760
+ #define LOAD 488
761
+ #define LOCAL 489
762
+ #define LOCATION 490
763
+ #define LOCK_P 491
764
+ #define LOCKED 492
765
+ #define LOGGED 493
766
+ #define MACRO 494
767
+ #define MAP 495
768
+ #define MAPPING 496
769
+ #define MATCH 497
770
+ #define MATERIALIZED 498
771
+ #define MAXVALUE 499
772
+ #define METHOD 500
773
+ #define MICROSECOND_P 501
774
+ #define MICROSECONDS_P 502
775
+ #define MILLISECOND_P 503
776
+ #define MILLISECONDS_P 504
777
+ #define MINUTE_P 505
778
+ #define MINUTES_P 506
779
+ #define MINVALUE 507
780
+ #define MODE 508
781
+ #define MONTH_P 509
782
+ #define MONTHS_P 510
783
+ #define MOVE 511
784
+ #define NAME_P 512
785
+ #define NAMES 513
786
+ #define NATIONAL 514
787
+ #define NATURAL 515
788
+ #define NCHAR 516
789
+ #define NEW 517
790
+ #define NEXT 518
791
+ #define NO 519
792
+ #define NONE 520
793
+ #define NOT 521
794
+ #define NOTHING 522
795
+ #define NOTIFY 523
796
+ #define NOTNULL 524
797
+ #define NOWAIT 525
798
+ #define NULL_P 526
799
+ #define NULLIF 527
800
+ #define NULLS_P 528
801
+ #define NUMERIC 529
802
+ #define OBJECT_P 530
803
+ #define OF 531
804
+ #define OFF 532
805
+ #define OFFSET 533
806
+ #define OIDS 534
807
+ #define OLD 535
808
+ #define ON 536
809
+ #define ONLY 537
810
+ #define OPERATOR 538
811
+ #define OPTION 539
812
+ #define OPTIONS 540
813
+ #define OR 541
814
+ #define ORDER 542
815
+ #define ORDINALITY 543
816
+ #define OUT_P 544
817
+ #define OUTER_P 545
818
+ #define OVER 546
819
+ #define OVERLAPS 547
820
+ #define OVERLAY 548
821
+ #define OVERRIDING 549
822
+ #define OWNED 550
823
+ #define OWNER 551
824
+ #define PARALLEL 552
825
+ #define PARSER 553
826
+ #define PARTIAL 554
827
+ #define PARTITION 555
828
+ #define PASSING 556
829
+ #define PASSWORD 557
830
+ #define PERCENT 558
831
+ #define PIVOT 559
832
+ #define PIVOT_LONGER 560
833
+ #define PIVOT_WIDER 561
834
+ #define PLACING 562
835
+ #define PLANS 563
836
+ #define POLICY 564
837
+ #define POSITION 565
838
+ #define POSITIONAL 566
839
+ #define PRAGMA_P 567
840
+ #define PRECEDING 568
841
+ #define PRECISION 569
842
+ #define PREPARE 570
843
+ #define PREPARED 571
844
+ #define PRESERVE 572
845
+ #define PRIMARY 573
846
+ #define PRIOR 574
847
+ #define PRIVILEGES 575
848
+ #define PROCEDURAL 576
849
+ #define PROCEDURE 577
850
+ #define PROGRAM 578
851
+ #define PUBLICATION 579
852
+ #define QUALIFY 580
853
+ #define QUOTE 581
854
+ #define RANGE 582
855
+ #define READ_P 583
856
+ #define REAL 584
857
+ #define REASSIGN 585
858
+ #define RECHECK 586
859
+ #define RECURSIVE 587
860
+ #define REF 588
861
+ #define REFERENCES 589
862
+ #define REFERENCING 590
863
+ #define REFRESH 591
864
+ #define REINDEX 592
865
+ #define RELATIVE_P 593
866
+ #define RELEASE 594
867
+ #define RENAME 595
868
+ #define REPEATABLE 596
869
+ #define REPLACE 597
870
+ #define REPLICA 598
871
+ #define RESET 599
872
+ #define RESPECT_P 600
873
+ #define RESTART 601
874
+ #define RESTRICT 602
875
+ #define RETURNING 603
876
+ #define RETURNS 604
877
+ #define REVOKE 605
878
+ #define RIGHT 606
879
+ #define ROLE 607
880
+ #define ROLLBACK 608
881
+ #define ROLLUP 609
882
+ #define ROW 610
883
+ #define ROWS 611
884
+ #define RULE 612
885
+ #define SAMPLE 613
886
+ #define SAVEPOINT 614
887
+ #define SCHEMA 615
888
+ #define SCHEMAS 616
889
+ #define SCROLL 617
890
+ #define SEARCH 618
891
+ #define SECOND_P 619
892
+ #define SECONDS_P 620
893
+ #define SECURITY 621
894
+ #define SELECT 622
895
+ #define SEMI 623
896
+ #define SEQUENCE 624
897
+ #define SEQUENCES 625
898
+ #define SERIALIZABLE 626
899
+ #define SERVER 627
900
+ #define SESSION 628
901
+ #define SET 629
902
+ #define SETOF 630
903
+ #define SETS 631
904
+ #define SHARE 632
905
+ #define SHOW 633
906
+ #define SIMILAR 634
907
+ #define SIMPLE 635
908
+ #define SKIP 636
909
+ #define SMALLINT 637
910
+ #define SNAPSHOT 638
911
+ #define SOME 639
912
+ #define SQL_P 640
913
+ #define STABLE 641
914
+ #define STANDALONE_P 642
915
+ #define START 643
916
+ #define STATEMENT 644
917
+ #define STATISTICS 645
918
+ #define STDIN 646
919
+ #define STDOUT 647
920
+ #define STORAGE 648
921
+ #define STORED 649
922
+ #define STRICT_P 650
923
+ #define STRIP_P 651
924
+ #define STRUCT 652
925
+ #define SUBSCRIPTION 653
926
+ #define SUBSTRING 654
927
+ #define SUMMARIZE 655
928
+ #define SYMMETRIC 656
929
+ #define SYSID 657
930
+ #define SYSTEM_P 658
931
+ #define TABLE 659
932
+ #define TABLES 660
933
+ #define TABLESAMPLE 661
934
+ #define TABLESPACE 662
935
+ #define TEMP 663
936
+ #define TEMPLATE 664
937
+ #define TEMPORARY 665
938
+ #define TEXT_P 666
939
+ #define THEN 667
940
+ #define TIME 668
941
+ #define TIMESTAMP 669
942
+ #define TO 670
943
+ #define TRAILING 671
944
+ #define TRANSACTION 672
945
+ #define TRANSFORM 673
946
+ #define TREAT 674
947
+ #define TRIGGER 675
948
+ #define TRIM 676
949
+ #define TRUE_P 677
950
+ #define TRUNCATE 678
951
+ #define TRUSTED 679
952
+ #define TRY_CAST 680
953
+ #define TYPE_P 681
954
+ #define TYPES_P 682
955
+ #define UNBOUNDED 683
956
+ #define UNCOMMITTED 684
957
+ #define UNENCRYPTED 685
958
+ #define UNION 686
959
+ #define UNIQUE 687
960
+ #define UNKNOWN 688
961
+ #define UNLISTEN 689
962
+ #define UNLOGGED 690
963
+ #define UNPIVOT 691
964
+ #define UNTIL 692
965
+ #define UPDATE 693
966
+ #define USE_P 694
967
+ #define USER 695
968
+ #define USING 696
969
+ #define VACUUM 697
970
+ #define VALID 698
971
+ #define VALIDATE 699
972
+ #define VALIDATOR 700
973
+ #define VALUE_P 701
974
+ #define VALUES 702
975
+ #define VARCHAR 703
976
+ #define VARIADIC 704
977
+ #define VARYING 705
978
+ #define VERBOSE 706
979
+ #define VERSION_P 707
980
+ #define VIEW 708
981
+ #define VIEWS 709
982
+ #define VIRTUAL 710
983
+ #define VOLATILE 711
984
+ #define WHEN 712
985
+ #define WHERE 713
986
+ #define WHITESPACE_P 714
987
+ #define WINDOW 715
988
+ #define WITH 716
989
+ #define WITHIN 717
990
+ #define WITHOUT 718
991
+ #define WORK 719
992
+ #define WRAPPER 720
993
+ #define WRITE_P 721
994
+ #define XML_P 722
995
+ #define XMLATTRIBUTES 723
996
+ #define XMLCONCAT 724
997
+ #define XMLELEMENT 725
998
+ #define XMLEXISTS 726
999
+ #define XMLFOREST 727
1000
+ #define XMLNAMESPACES 728
1001
+ #define XMLPARSE 729
1002
+ #define XMLPI 730
1003
+ #define XMLROOT 731
1004
+ #define XMLSERIALIZE 732
1005
+ #define XMLTABLE 733
1006
+ #define YEAR_P 734
1007
+ #define YEARS_P 735
1008
+ #define YES_P 736
1009
+ #define ZONE 737
1010
+ #define NOT_LA 738
1011
+ #define NULLS_LA 739
1012
+ #define WITH_LA 740
1013
+ #define POSTFIXOP 741
1014
+ #define UMINUS 742
1035
1015
 
1036
1016
 
1037
1017
 
@@ -1085,7 +1065,7 @@ typedef union YYSTYPE
1085
1065
  PGViewCheckOption viewcheckoption;
1086
1066
  }
1087
1067
  /* Line 1529 of yacc.c. */
1088
- #line 1089 "third_party/libpg_query/grammar/grammar_out.hpp"
1068
+ #line 1069 "third_party/libpg_query/grammar/grammar_out.hpp"
1089
1069
  YYSTYPE;
1090
1070
  # define yystype YYSTYPE /* obsolescent; will be withdrawn */
1091
1071
  # define YYSTYPE_IS_DECLARED 1