-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restructures ResultType and decouples printing into ResultPrinters: #3512
restructures ResultType and decouples printing into ResultPrinters: #3512
Conversation
awildturtok
commented
Jul 31, 2024
- ResultType is now very simple mix of primitive enum and LIST. (We hope to remove even more logic from it)
- Result printing was always weird with Mappings embedded in StringT. We've moved that responsibility into ResultInfo via SelectResultInfo for mapped Selects.
- This PR opens the possibility to embed anonymization into the ResultInfo.
- PrintSettings now caches the C10n calls as they were before that sometimes invoked per cell, which should make rendering faster.
backend/src/main/java/com/bakdata/conquery/ConqueryConstants.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/apiv1/query/concept/specific/CQAnd.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/result/arrow/ArrowRenderer.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/result/arrow/ArrowRenderer.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/result/arrow/ArrowUtil.java
Outdated
Show resolved
Hide resolved
...d/src/main/java/com/bakdata/conquery/models/query/statistics/NumberColumnStatsCollector.java
Outdated
Show resolved
Hide resolved
...d/src/main/java/com/bakdata/conquery/models/query/statistics/NumberColumnStatsCollector.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/statistics/ResultStatistics.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/sql/conversion/NodeConversions.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/sql/conversion/cqelement/ConversionContext.java
Show resolved
Hide resolved
- ResultType is now very simple mix of primitive enum and LIST. (We hope to remove even more logic from it) - Result printing was always weird with Mappings embedded in StringT. We've moved that responsibility into ResultInfo via SelectResultInfo for mapped Selects. - This PR opens the possibility to embed anonymization into the ResultInfo. - PrintSettings now caches the C10n calls as they were before that sometimes invoked per cell, which should make rendering faster.
df3f1cc
to
e688d98
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gefällt mir :)
So weit iche s gesehen habe ist jetzt noch mapping testenoffen mit den verschiedenen typen und den C10n Cache finde ich in den PrintSettings nicht so gut aufgehoben.
backend/src/main/java/com/bakdata/conquery/io/result/arrow/ArrowRenderer.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/result/excel/ExcelRenderer.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/result/parquet/EntityResultWriteSupport.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/datasets/concepts/Concept.java
Outdated
Show resolved
Hide resolved
.../conquery/models/datasets/concepts/select/connector/specific/MappableSingleColumnSelect.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/resultinfo/printers/ResultPrinters.java
Outdated
Show resolved
Hide resolved
@Override | ||
public ColumnDescriptor asColumnDescriptor(PrintSettings settings, UniqueNamer collector) { | ||
return ColumnDescriptor.builder() | ||
.label(defaultColumnName(settings)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So sollte hier passen
.label(defaultColumnName(settings)) | |
.label(collector.getUniqueName(this)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ich hab hier mal aufgeräumt und asColumnDescriptor final gemacht,das war ziemliches chaos aber alles im Grunde die gleiche impl
...c/main/java/com/bakdata/conquery/models/query/resultinfo/printers/SecondaryIdResultInfo.java
Outdated
Show resolved
Hide resolved
...c/main/java/com/bakdata/conquery/models/query/resultinfo/printers/SecondaryIdResultInfo.java
Outdated
Show resolved
Hide resolved
...d/src/main/java/com/bakdata/conquery/models/query/statistics/StringColumnStatsCollector.java
Outdated
Show resolved
Hide resolved
…or QueryStatisticsTest
backend/src/main/java/com/bakdata/conquery/apiv1/query/TableExportQuery.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/io/result/arrow/ArrowRenderer.java
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/PrintSettings.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/resultinfo/ResultInfo.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/resultinfo/SelectResultInfo.java
Outdated
Show resolved
Hide resolved
backend/src/main/java/com/bakdata/conquery/models/query/resultinfo/printers/ResultPrinters.java
Outdated
Show resolved
Hide resolved
7f23383
to
8b2ee30
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bitte noch über die offenen Konversationen rüberschauen. Da sind noch kleine Todos