soda-sqlserver 4.25.0__tar.gz → 4.26.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soda-sqlserver
3
- Version: 4.25.0
3
+ Version: 4.26.0
4
4
  Summary: Soda SQL Server V4
5
5
  Author-email: "Soda Data N.V." <info@soda.io>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.10
8
- Requires-Dist: soda-core==4.25.0
8
+ Requires-Dist: soda-core==4.26.0
9
9
  Requires-Dist: pyodbc
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "soda-sqlserver"
3
- version = "4.25.0"
3
+ version = "4.26.0"
4
4
  description = "Soda SQL Server V4"
5
5
  requires-python = ">=3.10"
6
6
  license = {text = "Proprietary"}
@@ -8,7 +8,7 @@ authors = [
8
8
  {name = "Soda Data N.V.", email = "info@soda.io"}
9
9
  ]
10
10
  dependencies = [
11
- "soda-core==4.25.0",
11
+ "soda-core==4.26.0",
12
12
  "pyodbc",
13
13
  ]
14
14
 
@@ -117,6 +117,11 @@ class SqlServerSqlDialect(SqlDialect, sqlglot_dialect="tsql"):
117
117
  # information_schema constraint views, with the standard PRIMARY KEY (...) DDL.
118
118
  return True
119
119
 
120
+ def get_large_numeric_cast_type_name(self) -> Optional[str]:
121
+ """CAST aggregate args to float: T-SQL's AVG over an integer column returns an
122
+ integer, dropping the fraction."""
123
+ return "float"
124
+
120
125
  def _build_stddev_samp_sql(self, stddev_samp) -> str:
121
126
  # T-SQL names the sample standard deviation aggregate STDEV.
122
127
  return f"STDEV({self.build_expression_sql(stddev_samp.expression)})"
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: soda-sqlserver
3
- Version: 4.25.0
3
+ Version: 4.26.0
4
4
  Summary: Soda SQL Server V4
5
5
  Author-email: "Soda Data N.V." <info@soda.io>
6
6
  License: Proprietary
7
7
  Requires-Python: >=3.10
8
- Requires-Dist: soda-core==4.25.0
8
+ Requires-Dist: soda-core==4.26.0
9
9
  Requires-Dist: pyodbc
@@ -0,0 +1,2 @@
1
+ soda-core==4.26.0
2
+ pyodbc
@@ -1,2 +0,0 @@
1
- soda-core==4.25.0
2
- pyodbc