Skip to content
Snippets Groups Projects
  1. Oct 15, 2024
  2. Oct 03, 2024
  3. Oct 01, 2024
    • Maksim Kaitmazian's avatar
      feat(sql): support IF EXIST and IF NOT EXISTS options · 1a553992
      Maksim Kaitmazian authored
      Note that after this merge request, we no longer validate whether the format
      of the created object matches with the schema. Consequently, we do not
      suppress errors if formats match anymore.
      
      Before:
      ```sql
      CREATE USER u WITH PASSWORD 'Passw0rd'
      1
      CREATE USER u WITH PASSWORD 'Passw0rd'
      0
      CREATE USER u WITH PASSWORD 'DifferentPassw0rd'
      error: user already exists with different auth method
      ```
      
      Now:
      ```sql
      CREATE USER u WITH PASSWORD 'Passw0rd'
      1
      CREATE USER u WITH PASSWORD 'Passw0rd'
      error: user u already exists
      CREATE USER u WITH PASSWORD 'DifferentPassw0rd'
      error: user u already exists
      CREATE USER IF NOT EXISTS u WITH PASSWORD 'DifferentPassw0rd'
      0
      ```
      1a553992
  4. Sep 26, 2024
  5. Sep 20, 2024
  6. Sep 17, 2024
  7. Sep 16, 2024
  8. Sep 13, 2024
  9. Sep 12, 2024
  10. Sep 11, 2024
  11. Sep 10, 2024
  12. Sep 09, 2024
  13. Sep 06, 2024
  14. Aug 30, 2024
  15. Aug 26, 2024
  16. Aug 20, 2024
  17. Aug 14, 2024
    • Dmitry Rodionov's avatar
      refactor: split reenterable_schema_change_request · a6dc7e99
      Dmitry Rodionov authored and Yaroslav Dynnikov's avatar Yaroslav Dynnikov committed
      Previously function was ~700 loc. The patch splits out the logic of
      conversion from ir node to operation. Previously there were two stages,
      initial validation that constructed intermediate structure and then
      intermediate structure was transformed into Op potentially several times
      in case of retries. The patch removes intermediate conversion by
      direct mapping from ir node to op. It makes reading more convenient
      since there is no need to jump back and forth between initial checks and
      actual Op construction. Another benefit is that some checks need to be
      repeated on each retry since retries originate from conflicts and
      conflicts change system state. So in newer state operation may no longer
      make sense. By coupling both operations together there is no way a check
      can be missed in the retry phase.
      
      We still do some cloning here and there. We can probably improve on that
      by constructing Op once and then adjusting it in place for conflicts but
      since retries should be rare in practice it shouldnt be a problem.
      
      Additionally we do a lot of conversion between SmolStr and String. We
      need to use SmolStr in more placese inside picodata so we dont need to
      do that.
      a6dc7e99
  18. Aug 12, 2024
  19. Jul 26, 2024
  20. Jul 23, 2024
  21. Jul 04, 2024
  22. Jul 01, 2024
  23. Jun 28, 2024
  24. Jun 26, 2024
  25. Jun 21, 2024
    • Vartan Babayan's avatar
      feat: remove owner from _pico_index table · 3c5abd25
      Vartan Babayan authored
      3c5abd25
    • Arseniy Volynets's avatar
      feat: support sql dml for global tbls · 0cc18871
      Arseniy Volynets authored
      - update sbroad submodule to commit with helper
      patches for dml on global tables
      - add support for sql dml insert/update/delete
      on global tables. Insert on conflict is not
      supported yet
      - Current implementation uses a single batch of
      dml commands via CAS. No additional predicates
      are used in CAS, so no isolation level is guaranteed
      even when query only refers to global tables
      0cc18871
  26. Jun 20, 2024
  27. Jun 19, 2024
Loading