Skip to content

Commit

Permalink
add version core function (#326)
Browse files Browse the repository at this point in the history
* add version core function
  • Loading branch information
aarroyosal authored Sep 22, 2022
1 parent 8c96677 commit eff897d
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 3 deletions.
12 changes: 11 additions & 1 deletion clouds/databricks/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,26 @@ All notable changes to this project will be documented in this file.

The format is inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [2022.09.20] - 2022-09-21
## [2022.09.21] - 2022-09-21

### All modules

#### Added

- Add VERSION_CORE function

### Accessors

#### Changed

- Change type returned by ST_X and ST_Y to Double

## [2022.09.20] - 2022-09-20

### All modules

#### Changed

- Set default compression codec to snappy

## [2022.09.16] - 2022-09-16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def write_queries(final_query):
if __name__ == '__main__':
sql_path = os.path.join(python_util_path, '..', '..', 'modules', 'sql')
modules = os.listdir(sql_path)
# We filter paths that aren't a directory
modules = list(filter(lambda x: os.path.isdir(os.path.join(sql_path, x)), modules))
queries_list = []
for module in modules:
module_path = os.path.join(sql_path, module)
Expand Down
4 changes: 4 additions & 0 deletions clouds/databricks/libraries/scala/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ lazy val core = project
.dependsOn(jts)
.settings(commonSettings)
.settings(name := "core")
.enablePlugins(BuildInfoPlugin)
.settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion)
)
.settings(
libraryDependencies ++= Seq(
"com.azavea" %% "hiveless-core" % hivelessVersion,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,8 @@ CREATE OR REPLACE FUNCTION ST_EXTENTTOGEOM as 'com.carto.analyticstoolbox.module
CREATE OR REPLACE FUNCTION ST_GEOMREPROJECT as 'com.carto.analyticstoolbox.modules.index.ST_GeomReproject';
CREATE OR REPLACE FUNCTION ST_MAKEEXTENT as 'com.carto.analyticstoolbox.modules.index.ST_MakeExtent';
CREATE OR REPLACE FUNCTION ST_PARTITIONCENTROID as 'com.carto.analyticstoolbox.modules.index.ST_PartitionCentroid';
CREATE OR REPLACE FUNCTION ST_Z2LATLON as 'com.carto.analyticstoolbox.modules.index.ST_Z2LatLon';
CREATE OR REPLACE FUNCTION ST_Z2LATLON as 'com.carto.analyticstoolbox.modules.index.ST_Z2LatLon';
-- Product
CREATE OR REPLACE FUNCTION VERSION_CORE()
RETURNS STRING
RETURN '2022.09.21';
2 changes: 1 addition & 1 deletion clouds/databricks/libraries/scala/project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.2.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1")

addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
1 change: 1 addition & 0 deletions clouds/databricks/modules/sql/.sqlfluffignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VERSION_CORE.sql
3 changes: 3 additions & 0 deletions clouds/databricks/modules/sql/product/VERSION_CORE.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CREATE OR REPLACE FUNCTION VERSION_CORE()
RETURNS STRING
RETURN '2022.09.21';

0 comments on commit eff897d

Please sign in to comment.