Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/sonarcube_fixes/test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import duckdb as db

navn = "eksempel"
splitt_7172 = db.sql(
db.sql(
f"""select distinct {navn}, verdi as rente from r12_koblet2 where art in ('71','72')"""
)
splitt_0160 = db.sql(
).create_view("splitt_7172")
db.sql(
f"""select distinct {navn}, verdi as belop_50 from r12_koblet2 where art in ('01','60')"""
)
).create_view("splitt_0160")

sp1=db.sql(f"""select a.*, b.belop_50 from splitt_7172 a full join splitt_0160 b
on a.periode=b.periode and a.selskap=b.selskap and a.serienavn=b.serienavn and a.ltid=b.ltid and a.sek=b.sek
where a.rente is not null and b.belop_50 is not null""").df()

Check warning on line 13 in src/sonarcube_fixes/test.py

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Add replacement fields or use a normal string instead of an f-string.

See more on https://sonarcloud.io/project/issues?id=statisticsnorway_tech-coach-examples&issues=AZ8cemCztlF8EVe9OhRX&open=AZ8cemCztlF8EVe9OhRX&pullRequest=104
Loading