quasardb 3.14.2.dev0__cp39-cp39-macosx_11_0_arm64.whl → 3.14.2.dev4__cp39-cp39-macosx_11_0_arm64.whl

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.

Potentially problematic release.


This version of quasardb might be problematic. Click here for more details.

Files changed (95) hide show
  1. quasardb/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
  2. quasardb/Makefile +20 -20
  3. quasardb/__init__.py +33 -4
  4. quasardb/cmake_install.cmake +7 -1
  5. quasardb/date/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
  6. quasardb/date/CMakeFiles/Export/a52b05f964b070ee926bcad51d3288af/dateTargets.cmake +13 -13
  7. quasardb/date/Makefile +20 -20
  8. quasardb/date/cmake_install.cmake +7 -1
  9. quasardb/date/dateConfigVersion.cmake +9 -2
  10. quasardb/date/dateTargets.cmake +4 -8
  11. quasardb/libqdb_api.dylib +0 -0
  12. quasardb/numpy/__init__.py +58 -10
  13. quasardb/pandas/__init__.py +58 -102
  14. quasardb/pybind11/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
  15. quasardb/pybind11/Makefile +20 -20
  16. quasardb/pybind11/cmake_install.cmake +7 -1
  17. quasardb/quasardb.cpython-39-darwin.so +0 -0
  18. quasardb/range-v3/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
  19. quasardb/range-v3/CMakeFiles/Export/d94ef200eca10a819b5858b33e808f5b/range-v3-targets.cmake +13 -13
  20. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/DependInfo.cmake +6 -2
  21. quasardb/range-v3/CMakeFiles/range.v3.headers.dir/build.make +7 -4
  22. quasardb/range-v3/Makefile +20 -20
  23. quasardb/range-v3/cmake_install.cmake +19 -1
  24. quasardb/range-v3/range-v3-config-version.cmake +9 -2
  25. quasardb/range-v3/range-v3-config.cmake +4 -8
  26. {quasardb-3.14.2.dev0.dist-info → quasardb-3.14.2.dev4.dist-info}/METADATA +15 -10
  27. quasardb-3.14.2.dev4.dist-info/RECORD +45 -0
  28. {quasardb-3.14.2.dev0.dist-info → quasardb-3.14.2.dev4.dist-info}/WHEEL +1 -1
  29. quasardb/CMakeLists.txt +0 -500
  30. quasardb/batch_column.hpp +0 -80
  31. quasardb/batch_inserter.hpp +0 -248
  32. quasardb/blob.hpp +0 -150
  33. quasardb/cluster.cpp +0 -89
  34. quasardb/cluster.hpp +0 -551
  35. quasardb/concepts.hpp +0 -278
  36. quasardb/continuous.cpp +0 -149
  37. quasardb/continuous.hpp +0 -106
  38. quasardb/convert/array.hpp +0 -282
  39. quasardb/convert/point.hpp +0 -330
  40. quasardb/convert/range.hpp +0 -282
  41. quasardb/convert/unicode.hpp +0 -598
  42. quasardb/convert/util.hpp +0 -22
  43. quasardb/convert/value.hpp +0 -711
  44. quasardb/convert.hpp +0 -38
  45. quasardb/detail/qdb_resource.hpp +0 -129
  46. quasardb/detail/ts_column.hpp +0 -224
  47. quasardb/direct_blob.hpp +0 -108
  48. quasardb/direct_handle.hpp +0 -83
  49. quasardb/direct_integer.hpp +0 -94
  50. quasardb/dispatch.hpp +0 -157
  51. quasardb/double.hpp +0 -87
  52. quasardb/entry.hpp +0 -273
  53. quasardb/error.hpp +0 -318
  54. quasardb/handle.cpp +0 -29
  55. quasardb/handle.hpp +0 -98
  56. quasardb/integer.hpp +0 -88
  57. quasardb/logger.cpp +0 -106
  58. quasardb/logger.hpp +0 -228
  59. quasardb/masked_array.hpp +0 -651
  60. quasardb/metrics.cpp +0 -103
  61. quasardb/metrics.hpp +0 -112
  62. quasardb/module.cpp +0 -76
  63. quasardb/module.hpp +0 -24
  64. quasardb/node.hpp +0 -123
  65. quasardb/numpy.cpp +0 -6
  66. quasardb/numpy.hpp +0 -489
  67. quasardb/object_tracker.hpp +0 -283
  68. quasardb/options.hpp +0 -244
  69. quasardb/perf.hpp +0 -336
  70. quasardb/pytypes.hpp +0 -221
  71. quasardb/query.cpp +0 -420
  72. quasardb/query.hpp +0 -92
  73. quasardb/reader/ts_row.hpp +0 -281
  74. quasardb/reader/ts_value.hpp +0 -245
  75. quasardb/remove_cvref.hpp +0 -31
  76. quasardb/string.hpp +0 -160
  77. quasardb/table.cpp +0 -289
  78. quasardb/table.hpp +0 -325
  79. quasardb/table_reader.hpp +0 -220
  80. quasardb/tag.hpp +0 -77
  81. quasardb/timestamp.hpp +0 -97
  82. quasardb/traits.hpp +0 -619
  83. quasardb/ts_iterator.hpp +0 -193
  84. quasardb/utils/blob_deque.hpp +0 -96
  85. quasardb/utils/ostream.hpp +0 -17
  86. quasardb/utils/permutation.hpp +0 -50
  87. quasardb/utils/stable_sort.hpp +0 -25
  88. quasardb/utils/unzip_view.hpp +0 -89
  89. quasardb/utils.cpp +0 -28
  90. quasardb/utils.hpp +0 -174
  91. quasardb/writer.cpp +0 -534
  92. quasardb/writer.hpp +0 -396
  93. quasardb-3.14.2.dev0.dist-info/RECORD +0 -109
  94. {quasardb-3.14.2.dev0.dist-info → quasardb-3.14.2.dev4.dist-info}/LICENSE.md +0 -0
  95. {quasardb-3.14.2.dev0.dist-info → quasardb-3.14.2.dev4.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
1
1
  # CMAKE generated file: DO NOT EDIT!
2
- # Generated by "Unix Makefiles" Generator, CMake Version 3.24
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 3.31
3
3
 
4
4
  # Relative path conversion top directories.
5
5
  set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty")
quasardb/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  # CMAKE generated file: DO NOT EDIT!
2
- # Generated by "Unix Makefiles" Generator, CMake Version 3.24
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 3.31
3
3
 
4
4
  # Default target executed when no arguments are given to make.
5
5
  default_target: all
@@ -48,10 +48,10 @@ cmake_force:
48
48
  SHELL = /bin/sh
49
49
 
50
50
  # The CMake executable.
51
- CMAKE_COMMAND = /opt/local/bin/cmake
51
+ CMAKE_COMMAND = /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake
52
52
 
53
53
  # The command to remove a file.
54
- RM = /opt/local/bin/cmake -E rm -f
54
+ RM = /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -E rm -f
55
55
 
56
56
  # Escaping for special characters.
57
57
  EQUALS = =
@@ -67,8 +67,8 @@ CMAKE_BINARY_DIR = /Users/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.m
67
67
 
68
68
  # Special rule for the target edit_cache
69
69
  edit_cache:
70
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
71
- /opt/local/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
70
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
71
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
72
72
  .PHONY : edit_cache
73
73
 
74
74
  # Special rule for the target edit_cache
@@ -77,8 +77,8 @@ edit_cache/fast: edit_cache
77
77
 
78
78
  # Special rule for the target rebuild_cache
79
79
  rebuild_cache:
80
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
81
- /opt/local/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
80
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
81
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
82
82
  .PHONY : rebuild_cache
83
83
 
84
84
  # Special rule for the target rebuild_cache
@@ -87,7 +87,7 @@ rebuild_cache/fast: rebuild_cache
87
87
 
88
88
  # Special rule for the target list_install_components
89
89
  list_install_components:
90
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
90
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Unspecified\""
91
91
  .PHONY : list_install_components
92
92
 
93
93
  # Special rule for the target list_install_components
@@ -96,38 +96,38 @@ list_install_components/fast: list_install_components
96
96
 
97
97
  # Special rule for the target install
98
98
  install: preinstall
99
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
100
- /opt/local/bin/cmake -P cmake_install.cmake
99
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
100
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -P cmake_install.cmake
101
101
  .PHONY : install
102
102
 
103
103
  # Special rule for the target install
104
104
  install/fast: preinstall/fast
105
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
106
- /opt/local/bin/cmake -P cmake_install.cmake
105
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
106
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -P cmake_install.cmake
107
107
  .PHONY : install/fast
108
108
 
109
109
  # Special rule for the target install/local
110
110
  install/local: preinstall
111
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
112
- /opt/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
111
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
112
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
113
113
  .PHONY : install/local
114
114
 
115
115
  # Special rule for the target install/local
116
116
  install/local/fast: preinstall/fast
117
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
118
- /opt/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
117
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
118
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
119
119
  .PHONY : install/local/fast
120
120
 
121
121
  # Special rule for the target install/strip
122
122
  install/strip: preinstall
123
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
124
- /opt/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
123
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
124
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
125
125
  .PHONY : install/strip
126
126
 
127
127
  # Special rule for the target install/strip
128
128
  install/strip/fast: preinstall/fast
129
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
130
- /opt/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
129
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
130
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
131
131
  .PHONY : install/strip/fast
132
132
 
133
133
  # The main all target
quasardb/__init__.py CHANGED
@@ -35,9 +35,19 @@
35
35
  .. moduleauthor: quasardb SAS. All rights reserved
36
36
  """
37
37
 
38
- def generic_error_msg(msg, e):
38
+ def generic_error_msg(msg, e = None):
39
39
  msg_str = "\n".join(msg)
40
- return """
40
+
41
+ if e is None:
42
+ return """
43
+ **************************************************************************
44
+
45
+ {}
46
+
47
+ **************************************************************************
48
+ """.format(msg_str, type(e), str(e))
49
+ else:
50
+ return """
41
51
  **************************************************************************
42
52
 
43
53
  {}
@@ -46,8 +56,8 @@ def generic_error_msg(msg, e):
46
56
 
47
57
  Original exception:
48
58
 
49
- Type: {}
50
- Message: {}
59
+ Type: {}
60
+ Message: {}
51
61
 
52
62
  **************************************************************************
53
63
  """.format(msg_str, type(e), str(e))
@@ -79,9 +89,23 @@ def glibc_error_msg(e):
79
89
 
80
90
  return generic_error_msg(msg, e)
81
91
 
92
+ def unknown_error_msg():
93
+ msg = [
94
+ "Unable to import quasardb module: unknown error. ",
95
+ "",
96
+ "This may have several causes, including, but not limited to: ",
97
+ " - a link error, ",
98
+ " - architecture mismatch, ",
99
+ " - the current working directory already contains a 'quasardb' subdirectory.",
100
+ "",
101
+ "If you believe this to be a bug, please reach out to QuasarDB at",
102
+ "support@quasar.ai"]
103
+
104
+ return generic_error_msg(msg)
82
105
  try:
83
106
  from quasardb.quasardb import *
84
107
  except BaseException as e:
108
+ print(e)
85
109
  if "undefined symbol" in str(e):
86
110
  print(link_error_msg(e))
87
111
  raise e
@@ -90,5 +114,10 @@ except BaseException as e:
90
114
  else:
91
115
  from quasardb import *
92
116
 
117
+ if not 'quasardb' in locals():
118
+ print(unknown_error_msg())
119
+ raise ImportError()
120
+
121
+
93
122
  from .extensions import extend_module
94
123
  extend_module(quasardb)
@@ -32,7 +32,7 @@ if(NOT DEFINED CMAKE_CROSSCOMPILING)
32
32
  set(CMAKE_CROSSCOMPILING "FALSE")
33
33
  endif()
34
34
 
35
- # Set default install directory permissions.
35
+ # Set path to fallback-tool for dependency-resolution.
36
36
  if(NOT DEFINED CMAKE_OBJDUMP)
37
37
  set(CMAKE_OBJDUMP "/usr/local/clang16/bin/llvm-objdump")
38
38
  endif()
@@ -45,3 +45,9 @@ if(NOT CMAKE_INSTALL_LOCAL_ONLY)
45
45
 
46
46
  endif()
47
47
 
48
+ string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
49
+ "${CMAKE_INSTALL_MANIFEST_FILES}")
50
+ if(CMAKE_INSTALL_LOCAL_ONLY)
51
+ file(WRITE "/Users/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.macosx-14.0-arm64-cpython-39/quasardb/install_local_manifest.txt"
52
+ "${CMAKE_INSTALL_MANIFEST_CONTENT}")
53
+ endif()
@@ -1,5 +1,5 @@
1
1
  # CMAKE generated file: DO NOT EDIT!
2
- # Generated by "Unix Makefiles" Generator, CMake Version 3.24
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 3.31
3
3
 
4
4
  # Relative path conversion top directories.
5
5
  set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/Users/teamcity/buildAgent/work/938b0bdf6727d1ad/thirdparty")
@@ -1,13 +1,13 @@
1
1
  # Generated by CMake
2
2
 
3
3
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
4
- message(FATAL_ERROR "CMake >= 2.8.0 required")
4
+ message(FATAL_ERROR "CMake >= 3.1.0 required")
5
5
  endif()
6
- if(CMAKE_VERSION VERSION_LESS "2.8.3")
7
- message(FATAL_ERROR "CMake >= 2.8.3 required")
6
+ if(CMAKE_VERSION VERSION_LESS "3.1.0")
7
+ message(FATAL_ERROR "CMake >= 3.1.0 required")
8
8
  endif()
9
9
  cmake_policy(PUSH)
10
- cmake_policy(VERSION 2.8.3...3.22)
10
+ cmake_policy(VERSION 3.1.0...3.29)
11
11
  #----------------------------------------------------------------
12
12
  # Generated CMake target import file.
13
13
  #----------------------------------------------------------------
@@ -64,10 +64,6 @@ set_target_properties(date::date PROPERTIES
64
64
  INTERFACE_SOURCES "${_IMPORT_PREFIX}/include/date/date.h"
65
65
  )
66
66
 
67
- if(CMAKE_VERSION VERSION_LESS 3.1.0)
68
- message(FATAL_ERROR "This file relies on consumers using CMake 3.1.0 or greater.")
69
- endif()
70
-
71
67
  # Load information for each installed configuration.
72
68
  file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/dateTargets-*.cmake")
73
69
  foreach(_cmake_config_file IN LISTS _cmake_config_files)
@@ -81,9 +77,12 @@ set(_IMPORT_PREFIX)
81
77
 
82
78
  # Loop over all imported files and verify that they actually exist
83
79
  foreach(_cmake_target IN LISTS _cmake_import_check_targets)
84
- foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
85
- if(NOT EXISTS "${_cmake_file}")
86
- message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
80
+ if(CMAKE_VERSION VERSION_LESS "3.28"
81
+ OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target}
82
+ OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}")
83
+ foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}")
84
+ if(NOT EXISTS "${_cmake_file}")
85
+ message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file
87
86
  \"${_cmake_file}\"
88
87
  but this file does not exist. Possible reasons include:
89
88
  * The file was deleted, renamed, or moved to another location.
@@ -92,8 +91,9 @@ but this file does not exist. Possible reasons include:
92
91
  \"${CMAKE_CURRENT_LIST_FILE}\"
93
92
  but not all the files it references.
94
93
  ")
95
- endif()
96
- endforeach()
94
+ endif()
95
+ endforeach()
96
+ endif()
97
97
  unset(_cmake_file)
98
98
  unset("_cmake_import_check_files_for_${_cmake_target}")
99
99
  endforeach()
quasardb/date/Makefile CHANGED
@@ -1,5 +1,5 @@
1
1
  # CMAKE generated file: DO NOT EDIT!
2
- # Generated by "Unix Makefiles" Generator, CMake Version 3.24
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 3.31
3
3
 
4
4
  # Default target executed when no arguments are given to make.
5
5
  default_target: all
@@ -48,10 +48,10 @@ cmake_force:
48
48
  SHELL = /bin/sh
49
49
 
50
50
  # The CMake executable.
51
- CMAKE_COMMAND = /opt/local/bin/cmake
51
+ CMAKE_COMMAND = /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake
52
52
 
53
53
  # The command to remove a file.
54
- RM = /opt/local/bin/cmake -E rm -f
54
+ RM = /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -E rm -f
55
55
 
56
56
  # Escaping for special characters.
57
57
  EQUALS = =
@@ -67,8 +67,8 @@ CMAKE_BINARY_DIR = /Users/teamcity/buildAgent/work/938b0bdf6727d1ad/build/temp.m
67
67
 
68
68
  # Special rule for the target edit_cache
69
69
  edit_cache:
70
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
71
- /opt/local/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
70
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
71
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
72
72
  .PHONY : edit_cache
73
73
 
74
74
  # Special rule for the target edit_cache
@@ -77,8 +77,8 @@ edit_cache/fast: edit_cache
77
77
 
78
78
  # Special rule for the target rebuild_cache
79
79
  rebuild_cache:
80
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
81
- /opt/local/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
80
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
81
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
82
82
  .PHONY : rebuild_cache
83
83
 
84
84
  # Special rule for the target rebuild_cache
@@ -87,7 +87,7 @@ rebuild_cache/fast: rebuild_cache
87
87
 
88
88
  # Special rule for the target list_install_components
89
89
  list_install_components:
90
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
90
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Available install components are: \"Unspecified\""
91
91
  .PHONY : list_install_components
92
92
 
93
93
  # Special rule for the target list_install_components
@@ -96,38 +96,38 @@ list_install_components/fast: list_install_components
96
96
 
97
97
  # Special rule for the target install
98
98
  install: preinstall
99
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
100
- /opt/local/bin/cmake -P cmake_install.cmake
99
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
100
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -P cmake_install.cmake
101
101
  .PHONY : install
102
102
 
103
103
  # Special rule for the target install
104
104
  install/fast: preinstall/fast
105
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
106
- /opt/local/bin/cmake -P cmake_install.cmake
105
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
106
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -P cmake_install.cmake
107
107
  .PHONY : install/fast
108
108
 
109
109
  # Special rule for the target install/local
110
110
  install/local: preinstall
111
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
112
- /opt/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
111
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
112
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
113
113
  .PHONY : install/local
114
114
 
115
115
  # Special rule for the target install/local
116
116
  install/local/fast: preinstall/fast
117
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
118
- /opt/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
117
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
118
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
119
119
  .PHONY : install/local/fast
120
120
 
121
121
  # Special rule for the target install/strip
122
122
  install/strip: preinstall
123
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
124
- /opt/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
123
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
124
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
125
125
  .PHONY : install/strip
126
126
 
127
127
  # Special rule for the target install/strip
128
128
  install/strip/fast: preinstall/fast
129
- @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
130
- /opt/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
129
+ @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
130
+ /Users/teamcity/buildAgent/temp/buildTmp/build-env-zlpe08f_/lib/python3.9/site-packages/cmake/data/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
131
131
  .PHONY : install/strip/fast
132
132
 
133
133
  # The main all target
@@ -32,7 +32,7 @@ if(NOT DEFINED CMAKE_CROSSCOMPILING)
32
32
  set(CMAKE_CROSSCOMPILING "FALSE")
33
33
  endif()
34
34
 
35
- # Set default install directory permissions.
35
+ # Set path to fallback-tool for dependency-resolution.
36
36
  if(NOT DEFINED CMAKE_OBJDUMP)
37
37
  set(CMAKE_OBJDUMP "/usr/local/clang16/bin/llvm-objdump")
38
38
  endif()
@@ -68,3 +68,9 @@ if(CMAKE_INSTALL_COMPONENT STREQUAL "Unspecified" OR NOT CMAKE_INSTALL_COMPONENT
68
68
  )
69
69
  endif()
70
70
 
71
+ string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
72
+ "${CMAKE_INSTALL_MANIFEST_FILES}")
73
+ if(CMAKE_INSTALL_LOCAL_ONLY)
74
+ file(WRITE "/Users/teamcity/buildAgent/work/938b0bdf6727d1ad/build/lib.macosx-14.0-arm64-cpython-39/quasardb/date/install_local_manifest.txt"
75
+ "${CMAKE_INSTALL_MANIFEST_CONTENT}")
76
+ endif()
@@ -52,7 +52,14 @@ else()
52
52
  endif()
53
53
 
54
54
 
55
- # if the installed project requested no architecture check, don't perform the check
56
- if("FALSE")
55
+ # if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it:
56
+ if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "")
57
57
  return()
58
58
  endif()
59
+
60
+ # check that the installed version has the same 32/64bit-ness as the one which is currently searching:
61
+ if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8")
62
+ math(EXPR installedBits "8 * 8")
63
+ set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)")
64
+ set(PACKAGE_VERSION_UNSUITABLE TRUE)
65
+ endif()
@@ -1,13 +1,13 @@
1
1
  # Generated by CMake
2
2
 
3
3
  if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8)
4
- message(FATAL_ERROR "CMake >= 2.8.0 required")
4
+ message(FATAL_ERROR "CMake >= 3.0.0 required")
5
5
  endif()
6
- if(CMAKE_VERSION VERSION_LESS "2.8.3")
7
- message(FATAL_ERROR "CMake >= 2.8.3 required")
6
+ if(CMAKE_VERSION VERSION_LESS "3.0.0")
7
+ message(FATAL_ERROR "CMake >= 3.0.0 required")
8
8
  endif()
9
9
  cmake_policy(PUSH)
10
- cmake_policy(VERSION 2.8.3...3.22)
10
+ cmake_policy(VERSION 3.0.0...3.29)
11
11
  #----------------------------------------------------------------
12
12
  # Generated CMake target import file.
13
13
  #----------------------------------------------------------------
@@ -15,10 +15,6 @@ cmake_policy(VERSION 2.8.3...3.22)
15
15
  # Commands may need to know the format version.
16
16
  set(CMAKE_IMPORT_FILE_VERSION 1)
17
17
 
18
- if(CMAKE_VERSION VERSION_LESS 3.0.0)
19
- message(FATAL_ERROR "This file relies on consumers using CMake 3.0.0 or greater.")
20
- endif()
21
-
22
18
  # Protect against multiple inclusion, which would fail when already imported targets are added once more.
23
19
  set(_cmake_targets_defined "")
24
20
  set(_cmake_targets_not_defined "")
quasardb/libqdb_api.dylib CHANGED
Binary file
@@ -414,6 +414,17 @@ def _ensure_list(xs, cinfos):
414
414
  return ret
415
415
 
416
416
 
417
+ def _coerce_retries(retries) -> quasardb.RetryOptions:
418
+ if retries is None:
419
+ return quasardb.RetryOptions()
420
+ elif isinstance(retries, int):
421
+ return quasardb.RetryOptions(retries=retries)
422
+ elif isinstance(retries, quasardb.RetryOptions):
423
+ return retries
424
+ else:
425
+ raise TypeError("retries should either be an integer or quasardb.RetryOptions, got: " + type(retries))
426
+
427
+
417
428
  def ensure_ma(xs, dtype=None):
418
429
  if isinstance(dtype, list):
419
430
  assert(isinstance(xs, list) == True)
@@ -556,20 +567,25 @@ def write_array(
556
567
  logger.info("Writing array (%d rows of dtype %s) to columns %s.%s (type %s)", len(data), data.dtype, table.get_name(), column, ctype)
557
568
  write_with[ctype](column, index, data)
558
569
 
559
-
560
570
  def write_arrays(
561
571
  data,
562
572
  cluster,
563
573
  table = None,
574
+ *,
564
575
  dtype = None,
565
576
  index = None,
566
577
  _async = False,
567
578
  fast = False,
568
579
  truncate = False,
569
- deduplicate=False,
570
- deduplication_mode='drop',
580
+ deduplicate = False,
581
+ deduplication_mode = 'drop',
571
582
  infer_types = True,
572
- writer = None):
583
+ writer = None,
584
+ write_through = False,
585
+ retries = 3,
586
+
587
+ # We accept additional kwargs that will be passed through the writer.push() methods
588
+ **kwargs):
573
589
  """
574
590
  Write multiple aligned numpy arrays to a table.
575
591
 
@@ -652,12 +668,25 @@ def write_arrays(
652
668
 
653
669
  Defaults to False.
654
670
 
671
+ write_through: optional bool
672
+ If True, data is not cached after write.
673
+ By default is False, in which case caching is left at the discretion of the server.
674
+
655
675
  writer: optional quasardb.Writer
656
676
  Allows you to explicitly provide a Writer to use, which is expected to be
657
677
  initialized with the `table`.
658
678
 
659
679
  Reuse of the Writer allows for some performance improvements.
660
680
 
681
+ retries: optional int or quasardb.RetryOptions
682
+ Number of times to retry in case of a push failure. This is useful in case of async
683
+ pipeline failures, or when doing transactional inserts that may occasionally cause
684
+ transaction conflicts.
685
+
686
+ Retries with exponential backoff, starts at 3 seconds, and doubles every retry attempt.
687
+
688
+ Alternatively, a quasardb.RetryOptions object can be passed to more carefully fine-tune
689
+ retry behavior.
661
690
  """
662
691
 
663
692
  if table:
@@ -673,7 +702,10 @@ def write_arrays(
673
702
  deduplicate=deduplicate,
674
703
  deduplication_mode=deduplication_mode,
675
704
  infer_types=infer_types,
676
- writer=writer)
705
+ write_through=write_through,
706
+ writer=writer,
707
+ retries=retries,
708
+ **kwargs)
677
709
 
678
710
 
679
711
  ret = []
@@ -738,19 +770,35 @@ def write_arrays(
738
770
  n_rows += len(index_)
739
771
  ret.append(table)
740
772
 
773
+ retries = _coerce_retries(retries)
774
+
775
+ # By default, we push all additional kwargs to the writer.push() function. This allows transparent propagation
776
+ # arguments.
777
+ #
778
+ # The initial use case was that so we can add additional parameters for test mocks, e.g. `mock_failures` so that
779
+ # we can validate the retry functionality.
780
+ push_kwargs = kwargs
781
+ push_kwargs['deduplicate'] = deduplicate
782
+ push_kwargs['deduplication_mode'] = deduplication_mode
783
+ push_kwargs['write_through'] = write_through
784
+ push_kwargs['retries'] = retries
785
+
741
786
  logger.debug("pushing %d rows", n_rows)
742
787
  start = time.time()
743
788
 
744
789
  if fast is True:
745
- writer.push_fast(push_data, deduplicate=deduplicate, deduplication_mode=deduplication_mode)
790
+ push_kwargs['push_mode'] = quasardb.WriterPushMode.Fast
746
791
  elif truncate is True:
747
- writer.push_truncate(push_data, deduplicate=deduplicate, deduplication_mode=deduplication_mode)
792
+ push_kwargs['push_mode'] = quasardb.WriterPushMode.Truncate
748
793
  elif isinstance(truncate, tuple):
749
- writer.push_truncate(push_data, range=truncate, deduplicate=deduplicate, deduplication_mode=deduplication_mode)
794
+ push_kwargs['push_mode'] = quasardb.WriterPushMode.Truncate
795
+ push_kwargs['range'] = truncate
750
796
  elif _async is True:
751
- writer.push_async(push_data, deduplicate=deduplicate, deduplication_mode=deduplication_mode)
797
+ push_kwargs['push_mode'] = quasardb.WriterPushMode.Async
752
798
  else:
753
- writer.push(push_data, deduplicate=deduplicate, deduplication_mode=deduplication_mode)
799
+ push_kwargs['push_mode'] = quasardb.WriterPushMode.Transactional
800
+
801
+ writer.push(push_data, **push_kwargs)
754
802
 
755
803
  logger.debug("pushed %d rows in %s seconds",
756
804
  n_rows, (time.time() - start))