* Add .gitpod.yml
* Remove .gitpod.yml
* Tweak Coveralls
* Tweak base-path
* Trigger build
* Specify "--cov=" appropriate to each build
* Tweaks
* Tweaks
* Change .tox paths to src/sqlfluff paths
* Run patch_lcov.py from tox, not from ci-tests.yml
* Fail-safe the script
* Add debug message
* Do nothing if coverage file not found
* Only try and patch lines where path begins with ".tox"
* Move Coveralls coverage builds first so we get results sooner
* Revert "Move Coveralls coverage builds first so we get results sooner"
This reverts commit b5df02bf8f5210732cafe0c2d9db9c6dcc5d879c.
* PR review: more detailed docstring
* Add .gitpod.yml
* Try using Coveralls rather than Codecov
* Remove .gitpod.yml
* Remove .gitpod.yml
* Trigger build
* Can't use Coverlls container action on Windows
* Update to use documented approach with Coveralls
* Install coveralls "on demand" before running
* Add GitHub token to Coveralls command
* Add "--service=github"
* Switch to official GitHub action, re-enable 2-way parallelism for some test runs
* Convert coverage file to lcov format for Coveralls upload
* Output pytest coverage in lcov format
* Specify path-to-lcov: coverage.lcov
* Add back codecov upload
* Port dbt-osmosis templater changes to SQLFluff
* Ran Black on the file
* Get some tests working
* Remove some likely obsolete tests
* Pass CLI vars to dbt-osmosis
* Add osmosis.py to SQLFluff
* Fix CI issues
* flake8
* Only run doctests for SQLFluff core, not sqlfluff-templater-dbt
* Skip sqlfluff-templater-dbt when running doctests
* Move osmosis.py to sqlfluff-templater-dbt package
* Misspelled package name
* Remove support for dbt < 1.0
* Removing bits of dbt < 1.0
* Add missing package
* Get more tests working
* Fix issues with ephemeral model compilation
* Remove osmosis.py; was moved to osmosis/__init__.py
* Add back functions that shouldn't have been removed
* Fix project_dir issue
* Fix some broken tests
* Try a different way of resetting between tests
* Try and get tests working
* Try to fix broken tests
* Remove unneeded compile() function; use compile_node().node
* PR review
* Add Apache license note
* Update plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/templater.py
* Add back code for handling db connection errors, also if project_dir not set
* Add missing dependencies
* Fix broken test
* Remove the fake db connection error; causes other tests to fail somehow
* Add Sponsors section with Datacoves
* PR review
* Add back the test__templater_dbt_handle_database_connection_failure test
* Fixes, tweaks to the CI checks (dbt Windows tests were failing intermittently with dbt 1.0)
* Tweak Python versions: 3.9 -> 3.10
* Run Black
* Fix some issues with dbt 1.4.0b1
* Trigger build
* Run Black
* Black
* Create missing constraints file
* Tweak version
* Tweaks due to dbt test weirdness
Co-authored-by: Barry Hart <barry.hart@zoro.com>
Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
* Bump to version 1.0.0
* Update to stable
* Fix util script
* Update changelog
* fix util script and update changelog
* Add a bit of prose to announce the release
* update util script to add spaces in version headings
* More docs update for stable release
* update changelog with more recent changes
* Update changelog with last PR
Co-authored-by: alanmcruickshank <alanmcruickshank@users.noreply.github.com>
Co-authored-by: Alan <alanmcruickshank@gmail.com>
* Add Db2 for i dialect
* revert CHANGELOG changes
* switch to generic Db2 to target all versions
* fix wrong dialect
* renaming files/folders from db2fori to db2
* generate yml file
* change url for db2 and other fixes
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
* support for reading snapshots in delta
* fixed a missed Spark3 reference the in README
* change atsign_literal to at_sign_literal
* remove AsOfGrammar
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
* Add Dockerfile and Github Actions workflow for Official Docker image
* Update Dockerfile
Co-authored-by: Barry Hart <barrywhart@yahoo.com>
* Update docker build comments
* Fix spelling mistake
* Official docker test (#2)
* Refactor Dockerfile for better caching performance; add .dockerignore.
* Implement layer caching in GHA.
Co-authored-by: Chris Curro <git@curro.cc>
* revert requirements.txt to be handled by #1956
* make docker image test consistent with suggested usage
* Add README reference to Official SQLFluff Docker Image
* Set separate end-user working directory for convenience
* remove -t option in integration test
* Add workflow_dispatch option incase we manually want to trigger docker build and push
* Extract dependencies from setup.cfg
Co-authored-by: Barry Hart <barrywhart@yahoo.com>
Co-authored-by: Chris Curro <git@curro.cc>
* add spark keywords
* add data sources
add core and popular community contributed data sources as non-reserved keywords
* add spark3 for dialect lookup
* rename to emphasize spark3
* alter database and alter view
* fix typo
* refactor spark_dialect to spark3_dialect
* [unit tests] AlterDatabaseStatementSegment
* [unit tests] ALTER TABLE
RENAME TO table_identified
RENAME partition_spec
* [unit tests] ALTER TABLE
ADD COLUMNS
* add back the 'add column' unit test'
'
* [unit test] ALTER TABLE
CHANGE COLUMN
* [Unit Test] ALTER TABLE
ADD PARTITION
* [unit tests] ALTER TABLE
DROP PARTITION
* add support and unit test for adding multiple partitionsl
* [unit tests] ALTER TABLE
SET and UNSET TBL PROPERTIES
* [unit tests] ALTER TABLE
SET SERDE & SET FILEFORMAT
* [unit tests] ALTER TABLE
Change File Location
* additional unit test for file location and serde
* alter column unit test
* Implement and test ALTER VIEW
* implement and unit test CREATE DATABASE
* implement and unit test CREATE FUNCTION
* implement and unit test create datasource table
* adding files for troubleshooting
* most recent changes for troubleshooting
* most recent changes to troubleshoot missing FileSegment
* pushing most recent changes for troubleshooting
* adding MAP data type to test case back in
* fix closing bracket not found parsing error
adding yml files from unit testing
* minor reformat
* refactor spark3 keywords file name
* refactor spark3 keywords file
* update docs for Spark3
* resolve linting errors
* black formatting and fixed flake8 linting errors
* Update src/sqlfluff/dialects/dialect_spark3.py
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
* cleaning up commented out code
* remove TODO for StoredAsGrammar and add clarifying comments
* add spark3 to README.md and setup.py
Co-authored-by: Danny Jones <51742311+WittierDinosaur@users.noreply.github.com>
Co-authored-by: Barry Pollard <barry@tunetheweb.com>
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
* Add GitHub CI as alternative to CircleCI
* Bug fixes
* Fixes
* Fix dbt
* Add coverage
* Fix coverage
* Fix bug
* Disable CircleCI
* Disable CircleCI
* Disable CircleCI
* Another attempt at disabling
* Take 5
* Take 6
* Revert CircleCI
* Ignore ini files
* Fix typo
* Add instructions
* Update ci-tests.yml
* Add cron and Windows
* Set bash shell for windows
* Correct shell
* Fix dbt on windows
* Line endings
* Change drive
* Set working directory
* Change working directory
* Drive setting
* Fix windows
* Fix windows
* Default directory
* Fix bug
* Fix dir
* Fix bug
* Set tempdir
* List env
* Fix dirs
* Remove working directory
* Fix typo
* Fix temp directory
* List env
* Fix paths
* Fix paths
* Paths
* Test paths
* file test
* Debugging
* Fix directory
* Fix path
* Fix directory
* Another attempt
* Testing
* More tests
* More testing
* Even more testing
* And again
* Bug fix
* Cleanup
* Remove Circle CI
* DBT requires Python 3.7 on windows
* DBT fixes
* Fix windows
* Separate out DocLinting to it's own job
* Final changes
* Incorrect line change
* Remove unnecessary pip commands
* Fix example
* Apply suggestions from code review
Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
* Update README.md
* Revert to one CI run always
Co-authored-by: Alan Cruickshank <alanmcruickshank@gmail.com>
* first step
* working without parsing
* commit intial function fix tsql
* Update src/sqlfluff/dialects/dialect_tsql.py
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
* Update test/dialects/tsql_test.py
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
* updated version with added test fixtures
* added official reserved keywords
* delete old function
* basic statements support
* cleanup unused segments
* revert two files
* reformat with black
* basic create table support
* reformat black
* update dialect tsql
* question to barry create table statement
* Support bracketed table references
* column definition added to create table.
* close to create table, issue with table name space
* fixed create table with brackets and spaces
* support for basic Tsql
* Minor reformats
* Import keywords
* Clean up
* removed column option and added comments
* removed unused class import
* Fix linting
* Add T-SQL to docs
* Review feedback
Co-authored-by: Eric Muijs <Muijs.Eric@kpmg.nl>
Co-authored-by: Barry Pollard <barry_pollard@hotmail.com>
Co-authored-by: Barry <barry@tunetheweb.com>