Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Adds MERGE INTO transform #109

Merged
merged 32 commits into from
Sep 15, 2024

Commits on Jun 27, 2024

  1. feat: Adds MERGE INTO transform

    This commit adds the ability to convert snowflakes [MERGE INTO](https://docs.snowflake.com/en/sql-reference/sql/merge) functionality into a functional equivalent implementation in duckdb.
    To do this we need to break apart the WHEN [NOT] MATCHED syntax into separate statements to be executed indepedently.
    
    This commit only adds the transform, there is more refactoring required in fakes.py in order to handle a transform
    that transforms a single expression into multiple expressions.
    jsibbison-square committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    c842900 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2024

  1. Configuration menu
    Copy the full SHA
    ab86bf1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40ada94 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Merge branch 'main' into jsibbison-20240627-merge-into

    * main:
      chore(main): release 0.9.20 (tekumara#115)
      fix: $$  not considered a variable
      fix: concurrent connection write-write conflict
      refactor: extract test_connect.py
      feat: SHOW PRIMARY KEYS for table (tekumara#114)
      chore(main): release 0.9.19 (tekumara#113)
      feat: Implements basic snowflake session variables via SET/UNSET (tekumara#111)
      chore(deps-dev): bump pyright from 1.1.366 to 1.1.369 (tekumara#112)
      chore(main): release 0.9.18 (tekumara#110)
    jsibbison-square committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    13a64cb View commit details
    Browse the repository at this point in the history
  2. WIP: working on merge

    Got basic case for merge working with a merge2 function, needs to be cleaned up, deleting original merge, fix result statement.
    jsibbison-square committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2eecaea View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main' into jsibbison-20240627-merge-into

    * main:
      fix: Only set variables for SetItem expressions (tekumara#116)
    jsibbison-square committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    d5d72a2 View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2024

  1. Configuration menu
    Copy the full SHA
    a580635 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. Configuration menu
    Copy the full SHA
    cd38095 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Merge branch 'main' into jsibbison-20240627-merge-into

    * main:
      feat: alter table cluster by
      chore: cruft update
      chore: bump sqlglot 25.5.1
    jsibbison-square committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    0cbeb50 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4310802 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Merge branch 'main' into jsibbison-20240627-merge-into

    * main: (38 commits)
      feat(server): support time & timestamp types
      ci(server): description - cover more types
      feat(server): handle snowflake ProgrammingError
      refactor: use rowtype for sf metadata in arrow schema
      feat(server): support empty result set
      chore(main): release 0.9.24 (tekumara#128)
      fix: don't require pandas at import time
      chore(main): release 0.9.23 (tekumara#126)
      feat: support conn.is_closed()
      refactor: extract conn, cursor, pandas_tools
      refactor: describe_as_rowtype uses sf_type
      refactor: describe_as_rowtype
      refactor: extract describe_as_result_metadata
      feat(server): support cur.description
      feat(server): support bool, int, float types
      chore(main): release 0.9.22 (tekumara#124)
      wip(server): add /queries/v1/abort-request
      fix: fetchmany supports irregular sizes
      fix: column types for DESCRIBE
      feat: describe view information_schema.*
      ...
    jsibbison-square committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    10aa014 View commit details
    Browse the repository at this point in the history
  2. Ruff fixes

    jsibbison-square committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    2ded345 View commit details
    Browse the repository at this point in the history
  3. ruff format

    jsibbison-square committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    71361fd View commit details
    Browse the repository at this point in the history
  4. fix typos

    jsibbison-square committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    dd8923c View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    533ca68 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. Configuration menu
    Copy the full SHA
    8f19190 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5c3e88 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    de6385b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d85a7b2 View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Merge branch 'main' into jsibbison-20240627-merge-into

    * main:
      chore(deps): update ruff requirement from ~=0.5.1 to ~=0.6.3 (tekumara#130)
      chore(deps-dev): bump pyright from 1.1.374 to 1.1.378 (tekumara#133)
    jsibbison-square committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    b39e2e5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4cd831c View commit details
    Browse the repository at this point in the history

Commits on Sep 5, 2024

  1. Configuration menu
    Copy the full SHA
    71457e8 View commit details
    Browse the repository at this point in the history
  2. some ruff fixes

    jsibbison-square committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    6905ac3 View commit details
    Browse the repository at this point in the history
  3. more ruff fixes

    jsibbison-square committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    7cf899a View commit details
    Browse the repository at this point in the history
  4. pyright fixes

    jsibbison-square committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    ac83fed View commit details
    Browse the repository at this point in the history
  5. ruff format fix

    jsibbison-square committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    97f6e2d View commit details
    Browse the repository at this point in the history
  6. remove todo

    jsibbison-square committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    6763398 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0c71782 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2024

  1. add transform test

    tekumara committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    3e3e9c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    63948c1 View commit details
    Browse the repository at this point in the history

Commits on Sep 8, 2024

  1. unalias

    tekumara committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    dfa68e1 View commit details
    Browse the repository at this point in the history
  2. Revert "unalias"

    This reverts commit dfa68e1.
    
    because it doesn't work when the alias is for a select expression
    
    eg: tekumara#24 (comment)
    tekumara committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    458b545 View commit details
    Browse the repository at this point in the history