Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/metabase/metabase. Pull mirroring updated .
  1. Mar 27, 2023
  2. Mar 13, 2023
  3. Mar 10, 2023
  4. Mar 06, 2023
  5. Feb 24, 2023
  6. Feb 23, 2023
    • Cam Saul's avatar
      Snowflake Honey SQL 2 (#28478) · e3d817a4
      Cam Saul authored
      * Snowflake Honey SQL 2
      
      * Test fix :wrench:
      
      * Use Honey SQL 2 for GTAP compilation in sandboxing tests
      
      * Test fix :wrench:
      Unverified
      e3d817a4
    • Case Nelson's avatar
      Sqlite honey sql 2 (#28389) · 80ba6b1a
      Case Nelson authored
      * Convert sqlite driver to honey-sql-2
      
      * Fix bad case statement
      
      * We can't run native queries with AS for oracle
      
      * Dont call ->honeysql on a honeysql-expr
      
      * Fix bad call to h2x
      
      * Identifier needs to be wrapped
      
      * Update kondo config
      
      * Fix test
      
      * Remove hformat fn handler
      
      * Rotate the Snowflake DB prefix AGAIN
      
      * `sql.qp/format-honeysql` needs to wrap stuff in parens when generating SQL snippets
      
      * Update tests to match new expected SQL format
      
      * Sort namespaces
      
      * Fix the flaky paging test
      
      * Fix flaky `metabase.query-processor-test.timezones-test/filter-datetime-by-date-in-timezone-test`
      
      * MySQL test fix :wrench:
      
      
      
      * Try running Redshift with a beefier runner
      
      ---------
      
      Co-authored-by: default avatarCam Saul <github@camsaul.com>
      Co-authored-by: default avatarCam Saul <1455846+camsaul@users.noreply.github.com>
      Unverified
      80ba6b1a
  7. Feb 22, 2023
  8. Feb 20, 2023
    • metamben's avatar
      Mongo joins (#28293) · 32854d3c
      metamben authored
      * Make joins work
      
      * Run fuzzy-field-info-test only against H2
      
      * Set driver/*driver* when performing actions
      
      * Restrict expressions+joins-test to DBs supporting date arithmetics
      
      * Fix ordering of (top level) fields in mongo tables
      
      * Explicitly exclude mongo from tests requiring foreign key support
      
      * Optimize away $sort stage for implicit order-by.
      Unverified
      32854d3c
  9. Feb 17, 2023
  10. Feb 16, 2023
  11. Feb 10, 2023
  12. Feb 09, 2023
  13. Feb 08, 2023
    • Case Nelson's avatar
      Adding support for timezone awareness to mongo (#27937) · 919d02ae
      Case Nelson authored
      * Adding support for timezone awareness to mongo
      
      * Remove unused ddl multimethod
      
      * Remove mongo from the sql driver type test
      
      * Fix tests and linters
      
      * Add test for filtering datetimes by date in timezone
      
      * Use test-data-with-timezones dataset as it should load in more dbs
      
      * Exclude broken drivers, vertica especially returns no rows
      
      * Address pr review, add timezone to isodate, include a full year of dates in the general timezone test
      
      * Assert against each row
      
      * Presto-jdbc year was not applying timezone
      Unverified
      919d02ae
    • Cam Saul's avatar
      Switch to Toucan 2 (#27688) · 06f52bd4
      Cam Saul authored
      Unverified
      06f52bd4
  14. Feb 07, 2023
  15. Feb 06, 2023
  16. Feb 03, 2023
  17. Feb 02, 2023
  18. Feb 01, 2023
  19. Jan 30, 2023
  20. Jan 26, 2023
  21. Jan 23, 2023
    • dpsutton's avatar
      Fix failing bigquery test (#27837) · 866602e9
      dpsutton authored
      Bigquery was checking that we can set a project-id in the db details of
      a bigquery database. Normally this comes from the json token:
      
      ```
      export MB_BIGQUERY_CLOUD_SDK_TEST_SERVICE_ACCOUNT_JSON='{
        "type": "service_account",
        "project_id": "metabase-bigquery-driver", // <- ordinarily source of truth
        "private_key_id": "keykeykeykeykeykeykeykey",
        "private_key": "-----BEGIN PRIVATE KEY----- ...."
      ```
      
      The db details normally connects to project-id
      "metabase-bigquery-driver" and this test swaps out to
      "bigquery-public-data" with a schema filter on chicago_taxi_trips.
      
      to prove it works it selects from that dataset:
      
      ```
      (mt/first-row
        (mt/run-mbql-query taxi_trips
          {:filter [:= [:field (mt/id :taxi_trips :unique_key) nil]
                       "67794e631648a002f88d4b7f3ab0bcb6a9ed306a"]}))
      ```
      
      The test fails because this row seems to no longer be in the
      results. The query isn't failing, it's just returning no rows (and
      presumably because the row with this id from 2014 is no longer in the
      dataset.)
      
      I ran the same with with a limit 4, see it's working and grab one of
      those rows and use the id as in the filter clause.
      
      old: "67794e631648a002f88d4b7f3ab0bcb6a9ed306a" ("2014-01-12T00:45:00Z")
      new: "ff0b96c0cada768361b1c9341e11905254644afb" ("2016-09-20T07:15:00Z")
      Unverified
      866602e9
    • metamben's avatar
      Simplify the calculation of mongo column types (#27752) · 7babd398
      metamben authored
      * Simplify the calculation of mongo column types
      
      * Remove TODO, since driver.common/class->base-type is being used
      Unverified
      7babd398
    • dpsutton's avatar
      Exclude tests in drivers (#27658) · c659e767
      dpsutton authored
      We can now filter out any ns tag for tests.
      Unverified
      c659e767
  22. Jan 17, 2023
  23. Jan 13, 2023
  24. Jan 11, 2023
Loading