Skip to content

Conversation

m-abulazm
Copy link
Contributor

Changes

What does this PR do?

change wrong log message and change level on successful reconcile aggregate runs

Resolves #1426

@m-abulazm m-abulazm self-assigned this Sep 23, 2025
@m-abulazm m-abulazm requested a review from a team as a code owner September 23, 2025 12:42
@m-abulazm m-abulazm added bug Something isn't working feat/recon making sure that remorphed query produces the same results as original labels Sep 23, 2025
Copy link

✅ 27/27 passed, 2 flaky, 1m28s total

Flaky tests:

  • 🤪 test_transpiles_informatica_with_sparksql (9.932s)
  • 🤪 test_transpile_sql_file (12.344s)

Running from acceptance #2327

Copy link
Collaborator

@gueniai gueniai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gueniai gueniai requested a review from a team September 23, 2025 14:38
Copy link
Collaborator

@sundarshankar89 sundarshankar89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@m-abulazm m-abulazm added this pull request to the merge queue Sep 23, 2025
Merged via the queue into main with commit b647d0e Sep 23, 2025
9 checks passed
@m-abulazm m-abulazm deleted the bug/recon/fix-logging branch September 23, 2025 16:19
gueniai added a commit that referenced this pull request Sep 25, 2025
## Analyzer

- **Large XML file chunking optimization**: Now the analyzer is able to handle large XML files (up to 1TB in size)

## Converters

### General

- **Non-interactive transpiler installation**: Introduced support for non-interactive installation mode with new `interactive` option that can detect environment context, enabling automated installations without user input while preserving existing configurations. Resolves [#2013](#2013)

### Morpheus

- **Enhanced GRANT statement support**: Implemented comprehensive GRANT statement support by creating dedicated `permission.g4` grammar file with IR definitions and translation rules for permission-related statements

- **Improved error handling**: Rewrote print function to properly handle newlines and added extensive unit tests for error annotation, including block and FIXME comments. Resolves [#2030](#2030)

- **Enhanced LSP server behavior**: Improved LSP server to append original text to error messages when transpilation fails, eliminating need for client-side response manipulation

- **Standardized dialect options**: Aligned dialect options to present `synapse` and `mssql` to users for consistency with bladebridge

- **Fixed Lateral Column Alias handling**: Enhanced dealiasing for Lateral Column Aliases (LCAs) in WHERE clauses under CASE...WHEN expressions. Resolves [#1767](#1767)

- **Enhanced GROUP BY/aggregation function dealiasing**: Implemented dealiasing for Lateral Column Aliases in GROUP BY clauses and aggregation functions where LCA references are unsupported. Resolves ([https://github.com/databrickslabs/lakebridge/issues/956](https://github.com/databrickslabs/lakebridge/issues/956)) and ([https://github.com/databrickslabs/lakebridge/issues/954](https://github.com/databrickslabs/lakebridge/issues/954))

- **Optimized Snowflake transformations**: Reordered transformation rules to ensure `TransformWithinGroup` processes all cases before the call mapper. Resolves [#1231](#1231)

### BladeBridge

- **Enhanced merge statement handlers**: Improved merge statement processing to fix backtick handling, update operations without WHERE clauses, procedure conversions, IF-THEN-SET blocks, and various delimiter and mapping issues

- **Fixed view creation with WITH clauses**: Corrected CREATE VIEW functionality to properly handle WITH clause statements

- **Oracle script improvements**: Resolved variable declaration issues in Oracle scripts containing exception handling blocks

- **SQL Server function mapping**: Added function mappings for Microsoft SQL Server functions including GETUTCDATE, IS_MEMBER, SERVERPROPERTY variants, and QUOTENAME with one or two arguments

- **Fixed variable declarations**: Resolved variable declaration issues in Oracle scripts that contain exception handling blocks

- MSSQL Server **Enhanced function mappings**: Added comprehensive function mappings including GETUTCDATE, IS_MEMBER, SERVERPROPERTY variants, and QUOTENAME with one or two arguments

## Reconcile

- **Improved logging for aggregate reconciliation**: Enhanced logging functionality to provide more accurate messages by replacing warning logs with informational messages when aggregate details rules are empty, indicating successful reconciliation with no details to store. Resolves [#2040](#2040)

- **Refactored aggregate query building**: Simplified code using `AggregateQueryBuilder` class to generate queries for both source and target in a more concise and efficient manner

## Documentation

No updates in this release

## Dependency updates:

 * Bump actions/setup-python from 5 to 6 ([#1988](#1988)).
@gueniai gueniai mentioned this pull request Sep 25, 2025
gueniai added a commit that referenced this pull request Sep 25, 2025
## Analyzer

- **Large XML file chunking optimization**: Now the analyzer is able to
handle large XML files (up to 1TB in size)
    
## Converters

### General

- **Non-interactive transpiler installation**: Introduced support for
non-interactive installation mode with new `interactive` option that can
detect environment context, enabling automated installations without
user input while preserving existing configurations.
Resolves [#2013](#2013)

### Morpheus
    
- **Enhanced GRANT statement support**: Implemented comprehensive GRANT
statement support by creating dedicated `permission.g4` grammar file
with IR definitions and translation rules for permission-related
statements
    
- **Improved error handling**: Rewrote print function to properly handle
newlines and added extensive unit tests for error annotation, including
block and FIXME comments.
Resolves [#2030](#2030)
    
- **Enhanced LSP server behavior**: Improved LSP server to append
original text to error messages when transpilation fails, eliminating
need for client-side response manipulation
    
- **Standardized dialect options**: Aligned dialect options to
present `synapse` and `mssql` to users for consistency with bladebridge
    
- **Fixed Lateral Column Alias handling**: Enhanced dealiasing for
Lateral Column Aliases (LCAs) in WHERE clauses under CASE...WHEN
expressions.
Resolves [#1767](#1767)
    
- **Enhanced GROUP BY/aggregation function dealiasing**: Implemented
dealiasing for Lateral Column Aliases in GROUP BY clauses and
aggregation functions where LCA references are unsupported. Resolves
([https://github.com/databrickslabs/lakebridge/issues/956](https://github.com/databrickslabs/lakebridge/issues/956))
and
([https://github.com/databrickslabs/lakebridge/issues/954](https://github.com/databrickslabs/lakebridge/issues/954))
    
- **Optimized Snowflake transformations**: Reordered transformation
rules to ensure `TransformWithinGroup` processes all cases before the
call mapper.
Resolves [#1231](#1231)
    
### BladeBridge

- **Enhanced merge statement handlers**: Improved merge statement
processing to fix backtick handling, update operations without WHERE
clauses, procedure conversions, IF-THEN-SET blocks, and various
delimiter and mapping issues
    
- **Fixed view creation with WITH clauses**: Corrected CREATE VIEW
functionality to properly handle WITH clause statements

- **Oracle script improvements**: Resolved variable declaration issues
in Oracle scripts containing exception handling blocks
    
- **SQL Server function mapping**: Added function mappings for Microsoft
SQL Server functions including GETUTCDATE, IS_MEMBER, SERVERPROPERTY
variants, and QUOTENAME with one or two arguments
    
- **Fixed variable declarations**: Resolved variable declaration issues
in Oracle scripts that contain exception handling blocks
    
- MSSQL Server **Enhanced function mappings**: Added comprehensive
function mappings including GETUTCDATE, IS_MEMBER, SERVERPROPERTY
variants, and QUOTENAME with one or two arguments
    

## Reconcile

- **Improved logging for aggregate reconciliation**: Enhanced logging
functionality to provide more accurate messages by replacing warning
logs with informational messages when aggregate details rules are empty,
indicating successful reconciliation with no details to store.
Resolves [#2040](#2040)
    
- **Refactored aggregate query building**: Simplified code
using `AggregateQueryBuilder` class to generate queries for both source
and target in a more concise and efficient manner
    

## Documentation

No updates in this release

## Dependency updates:

* Bump actions/setup-python from 5 to 6
([#1988](#1988)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feat/recon making sure that remorphed query produces the same results as original
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: Recon: Aggregates recon giving false warning
3 participants