1. 24 5月, 2023 1 次提交
    • D
      Feature/3.0 geometry (#21037) · 984211f3
      Dingle Zhang 提交于
      * Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far.
      
      * add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling
      
      * change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh
      
      * Add a function MakePoint() and introduce a lib geometry
      
      * implement sql functions GeomFromText() and AsText()
      
      * Use GEOS *_r funcions instead for thread safety
      
      * Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT.
      Add geosWrapper to wrap the basic GEOS functions for TDEngine.
      
      * refactor AsText and MakePoint functions to be like GeomFromText
      
      * Show WKT when print geometry data in screen
      Dump hex data when dump geometry data in a file
      
      * define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues.
      
      * set number of decimals of WKT to 6
      
      * Implement SQL function Intersects()
      
      * refactor geometry sql functions
      
      * Add geosErrMsgeHandler() to get the GEOS error detail
      
      * use threadlocal to instantiate SGeosContext
      call destroyGeosContext() only if the thread exists
      
      * remove SGeosContext *context param for all geometry functions since we use thread local one,
      so that all caller do not need to know the context.
      
      * Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance.
      
      * rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn
      
      * Add prefix "ST_" for all geometry functions
      
      * move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util,
      so that all unit test tools can compile
      
      * Add unit test for geometry lib, only test MakePoint so far
      
      * refactor and enhance existing cases in geomFuncTest
      
      * implement NULL type and NULL value test for geomFuncTest
      
      * add test on geomFromText()
      
      * add unit test on AsText() in geomFuncTest
      
      * combine some makePointFunction test items
      
      * add intersectsFunctionTwoColumns test
      refactor on callGeomFromTextWrapper functions
      
      * enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content
      
      * add more cases into intersectsFunction test
      
      * Add basic test on geometry in system test
      
      * Add ST_GeomFromText and ST_AsText function test in system test on geometry
      
      * add ST_Intersects function test in system test on geometry
      
      * support to check expectedErrno in system test on geometry
      
      * adjust geomTest unit test and geometry system test
      
      * add geometry data type and functions in doc english version
      
      * implement touchesFunction() in geometry lib
      refactor geometry relation functions model
      
      * separate gemFuncTest into several src files
      
      * add unit test on touchesFunction
      
      * support sql function ST_Touches()
      add system test on ST_Touches
      
      * add docs for ST_Touches()
      
      * Add ST_Contains()
      
      * Add ST_Covers()
      
      * Add ST_Equals()
      
      * add swapAllowed param for geomRelationFunction()
      read geom2 earlier intead of at doGeosRelation()
      
      * Add ST_ContainsProperly()
      
      * build on windows
      
      * Merge from 3.0 to 3.0_geometry
      
      * change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility
      
      * change '\\NULL' to 'NULL' back in shellDumpFieldToFile()
      
      * add /usr/local/include into include directory
      
      * add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
      984211f3
  2. 28 4月, 2023 1 次提交
  3. 07 12月, 2022 2 次提交
  4. 19 10月, 2022 1 次提交
  5. 17 10月, 2022 1 次提交
  6. 13 9月, 2022 1 次提交
  7. 12 8月, 2022 1 次提交
  8. 13 7月, 2022 1 次提交
  9. 01 6月, 2022 1 次提交
  10. 18 5月, 2022 1 次提交
  11. 26 3月, 2022 1 次提交
  12. 20 3月, 2022 1 次提交
  13. 28 2月, 2022 1 次提交
  14. 27 2月, 2022 1 次提交
  15. 04 10月, 2021 2 次提交
  16. 03 10月, 2021 1 次提交
  17. 24 7月, 2021 1 次提交
  18. 20 7月, 2021 1 次提交
  19. 27 6月, 2021 1 次提交
    • J
      Rename file and add some comment/changes (#6587) · 9a062484
      Jun Li 提交于
      1. rename semphone to semaphore
      2. add comment for tsched.h
      3. change the function signature for taosSchedulerTask, changing from
      return int to void. We currently don't check any return code of the function.
      4. add some error handlings. For fatal error, just exit the process because
      the program may run into a random state.
      9a062484
  20. 27 8月, 2020 1 次提交
  21. 04 8月, 2020 1 次提交
  22. 28 6月, 2020 1 次提交
  23. 09 6月, 2020 1 次提交
  24. 07 6月, 2020 1 次提交
  25. 21 5月, 2020 1 次提交
  26. 19 4月, 2020 1 次提交
  27. 12 4月, 2020 1 次提交
  28. 11 4月, 2020 1 次提交
  29. 19 12月, 2019 1 次提交
  30. 17 12月, 2019 1 次提交
  31. 16 11月, 2019 1 次提交
  32. 11 10月, 2019 1 次提交
  33. 14 8月, 2019 1 次提交
    • weixin_48148422's avatar
      enhance robustness of scheduler · 83eb20d3
      weixin_48148422 提交于
      1. check all memory allocation failure in `taosInitScheduler`;
      2. make `pSched->numOfThreads` the actual number of created threads
      to avoid crash in `taosCleanUpScheduler` when `pSched->qthread` is NULL
      and other issues;
      3. check interruption of `sem_wait` in `taosScheduleTask`,
      and use `pTrace` instead of `pError` when `sem_wait` was interrupted;
      4. cancel all threads before join them to enable cocurrent cancellation;
      5. remove unused global variable.
      83eb20d3
  34. 26 7月, 2019 1 次提交
  35. 22 7月, 2019 1 次提交
  36. 11 7月, 2019 1 次提交