@malloydata/malloy 0.0.61-dev230724171210 → 0.0.61-dev230724175125
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.
|
@@ -758,6 +758,9 @@ class MalloyToAST extends AbstractParseTreeVisitor_1.AbstractParseTreeVisitor {
|
|
|
758
758
|
const topN = this.getNumber(pcx.INTEGER_LITERAL());
|
|
759
759
|
let top;
|
|
760
760
|
if (byCx) {
|
|
761
|
+
if (this.m4WarningsEnabled()) {
|
|
762
|
+
this.contextError(byCx, 'by clause of top statement unupported. Use order_by instead', 'warn');
|
|
763
|
+
}
|
|
761
764
|
const nameCx = byCx.fieldName();
|
|
762
765
|
if (nameCx) {
|
|
763
766
|
const name = this.getFieldName(nameCx);
|